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 03db876
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/adapter-netlify/src/edge.js
Original file line number Diff line number Diff line change
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
4 changes: 2 additions & 2 deletions packages/adapter-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export default function (opts = {}) {
builder.mkdirp(tmp);

builder.log.minor('Copying assets');
builder.writeClient(`${out}/client`);
builder.writePrerendered(`${out}/prerendered`);
builder.writeClient(`${out}/client${builder.config.kit.paths.base}`);
builder.writePrerendered(`${out}/prerendered${builder.config.kit.paths.base}`);

if (precompress) {
builder.log.minor('Compressing assets');
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-node/src/handler.js
Original file line number Diff line number Diff line change
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 03db876

Please sign in to comment.