mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
@@ -36,10 +36,16 @@ const globalData = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const passThroughExtensions = ['js', 'css', 'png', 'svg', 'jpg', 'mp4'];
|
|
||||||
const passThrough = [...passThroughExtensions.map(ext => 'docs/**/*.' + ext)];
|
|
||||||
|
|
||||||
export default function (eleventyConfig) {
|
export default function (eleventyConfig) {
|
||||||
|
/**
|
||||||
|
* If you plan to add or remove any of these extensions, make sure to let either Konnor or Cory know as these passthrough extensions
|
||||||
|
* will also need to be updated in the Web Awesome App.
|
||||||
|
*/
|
||||||
|
const passThroughExtensions = ['js', 'css', 'png', 'svg', 'jpg', 'mp4'];
|
||||||
|
|
||||||
|
const baseDir = process.env.BASE_DIR || 'docs';
|
||||||
|
const passThrough = [...passThroughExtensions.map(ext => path.join(baseDir, '**/*.' + ext))];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the guard we use for now to make sure our final built files dont need a 2nd pass by the server. This keeps us able to still deploy the bare HTML files on Vercel until the app is ready.
|
* This is the guard we use for now to make sure our final built files dont need a 2nd pass by the server. This keeps us able to still deploy the bare HTML files on Vercel until the app is ready.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user