diff --git a/packages/adapter-netlify/src/edge.js b/packages/adapter-netlify/src/edge.js index 2a478285a71d8..819c6047e825b 100644 --- a/packages/adapter-netlify/src/edge.js +++ b/packages/adapter-netlify/src/edge.js @@ -2,7 +2,7 @@ import { Server } from '0SERVER'; import { manifest, prerendered } from 'MANIFEST'; const server = new Server(manifest); -const prefix = `/${manifest.appDir}/`; +const prefix = `/${manifest.appPath}/`; const initialized = server.init({ // @ts-ignore diff --git a/packages/adapter-node/src/handler.js b/packages/adapter-node/src/handler.js index 7177e836bf753..26ad1324c0da7 100644 --- a/packages/adapter-node/src/handler.js +++ b/packages/adapter-node/src/handler.js @@ -36,7 +36,7 @@ function serve(path, client = false) { client && ((res, pathname) => { // only apply to build directory, not e.g. version.json - if (pathname.startsWith(`/${manifest.appDir}/immutable/`)) { + if (pathname.startsWith(`/${manifest.appPath}/immutable/`)) { res.setHeader('cache-control', 'public,max-age=31536000,immutable'); } })