🎥 Make videos programmatically with React
404 on not found
Jonny Burger2a95d1612bdb
diff --git a/packages/bundler/src/start-server.ts b/packages/bundler/src/start-server.tsindex fb77778c5d..4fad6ed3d1 100644--- a/packages/bundler/src/start-server.ts+++ b/packages/bundler/src/start-server.ts@@ -52,7 +52,21 @@ export const startServer = async (const hash = `/static-${crypto.randomBytes(6).toString('hex')}`;- app.use(hash, express.static(path.join(process.cwd(), 'public')));+ app.use(+ hash,+ express.static(path.join(process.cwd(), 'public'), {+ cacheControl: true,+ dotfiles: 'allow',+ etag: true,+ extensions: false,+ fallthrough: false,+ immutable: false,+ index: false,+ lastModified: true,+ maxAge: 0,+ redirect: true,+ })+ );app.use(wdm(compiler));app.use(webpackHotMiddleware(compiler));diff --git a/packages/bundler/src/static-preview.ts b/packages/bundler/src/static-preview.tsindex 8c969d9060..5962ead79a 100644--- a/packages/bundler/src/static-preview.ts+++ b/packages/bundler/src/static-preview.ts@@ -1,4 +1,5 @@import path from 'path';+export const indexHtml = (staticHash: string,baseDir: string,