Skip to content

Commit 95fad5c

Browse files
committed
fix(analog-sanity-blog): send redirect on draft endpoint
1 parent 07095ab commit 95fad5c

4 files changed

Lines changed: 30 additions & 28 deletions

File tree

apps/analog-sanity-blog-example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "analog-sanity-blog-example",
33
"type": "module",
44
"dependencies": {
5-
"@analogjs/router": "1.8.0",
5+
"@analogjs/router": "1.9.0-beta.4",
66
"@angular/common": "~18.2.5",
77
"@angular/core": "~18.2.5",
88
"@angular/platform-browser": "~18.2.5",
@@ -19,8 +19,8 @@
1919
"zone.js": "~0.14.0"
2020
},
2121
"devDependencies": {
22-
"@analogjs/content": "1.8.0",
23-
"@analogjs/platform": "1.8.0",
22+
"@analogjs/content": "1.9.0-beta.4",
23+
"@analogjs/platform": "1.9.0-beta.4",
2424
"@nx/vite": "19.8.0",
2525
"marked-highlight": "^2.1.4",
2626
"rollup-plugin-typescript-paths": "^1.5.0",

apps/analog-sanity-blog-example/src/server/utils/draft-mode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function setDraftMode(event: H3Event, enable = true): void {
1616
secure: process.env['NODE_ENV'] === 'production',
1717
maxAge: COOKIE_MAX_AGE,
1818
path: '/',
19+
sameSite: 'none',
1920
});
2021
} else {
2122
deleteCookie(event, PRERENDER_BYPASS_COOKIE_NAME);

apps/analog-sanity-blog-example/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default defineConfig(() => {
3636
],
3737
},
3838
},
39+
useAPIMiddleware: false,
3940
}),
4041
nxViteTsPaths(),
4142
splitVendorChunkPlugin(),

pnpm-lock.yaml

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)