Skip to content

Commit

Permalink
fix netlify edge and adapter-node. drop other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 12, 2022
1 parent 65ec1b7 commit 4755346
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/adapter-netlify/src/edge.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-node/src/handler.js
Expand Up @@ -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');
}
})
Expand Down

0 comments on commit 4755346

Please sign in to comment.