Fix KeyStatic: Add server function redirect
Add redirect to route all requests to the Netlify SSR server function. This enables KeyStatic API routes and GitHub OAuth to work properly. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { renderers } from './renderers.mjs';
|
import { renderers } from './renderers.mjs';
|
||||||
import { s as serverEntrypointModule } from './chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs';
|
import { s as serverEntrypointModule } from './chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs';
|
||||||
import { manifest } from './manifest_PPkPDeqU.mjs';
|
import { manifest } from './manifest_D0DB8br9.mjs';
|
||||||
import { createExports } from '@astrojs/netlify/ssr-function.js';
|
import { createExports } from '@astrojs/netlify/ssr-function.js';
|
||||||
|
|
||||||
const serverIslandMap = new Map();;
|
const serverIslandMap = new Map();;
|
||||||
@@ -78,7 +78,7 @@ const _manifest = Object.assign(manifest, {
|
|||||||
middleware: () => import('./_noop-middleware.mjs')
|
middleware: () => import('./_noop-middleware.mjs')
|
||||||
});
|
});
|
||||||
const _args = {
|
const _args = {
|
||||||
"middlewareSecret": "3bc5afa7-1f80-4abb-b8ae-cd8708a47358"
|
"middlewareSecret": "561f5e46-e770-45eb-90f1-efb1d9015b36"
|
||||||
};
|
};
|
||||||
const _exports = createExports(_manifest, _args);
|
const _exports = createExports(_manifest, _args);
|
||||||
const __astrojsSsrVirtualEntry = _exports.default;
|
const __astrojsSsrVirtualEntry = _exports.default;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
import { renderers } from './renderers.mjs';
|
import { renderers } from './renderers.mjs';
|
||||||
import { s as serverEntrypointModule } from './chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs';
|
import { s as serverEntrypointModule } from './chunks/_@astrojs-ssr-adapter_CvSoi7hX.mjs';
|
||||||
import { manifest } from './manifest_PPkPDeqU.mjs';
|
import { manifest } from './manifest_D0DB8br9.mjs';
|
||||||
import { createExports } from '@astrojs/netlify/ssr-function.js';
|
import { createExports } from '@astrojs/netlify/ssr-function.js';
|
||||||
|
|
||||||
const serverIslandMap = new Map();;
|
const serverIslandMap = new Map();;
|
||||||
@@ -78,7 +78,7 @@ const _manifest = Object.assign(manifest, {
|
|||||||
middleware: () => import('./_noop-middleware.mjs')
|
middleware: () => import('./_noop-middleware.mjs')
|
||||||
});
|
});
|
||||||
const _args = {
|
const _args = {
|
||||||
"middlewareSecret": "3bc5afa7-1f80-4abb-b8ae-cd8708a47358"
|
"middlewareSecret": "561f5e46-e770-45eb-90f1-efb1d9015b36"
|
||||||
};
|
};
|
||||||
const _exports = createExports(_manifest, _args);
|
const _exports = createExports(_manifest, _args);
|
||||||
const __astrojsSsrVirtualEntry = _exports.default;
|
const __astrojsSsrVirtualEntry = _exports.default;
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -8,3 +8,9 @@
|
|||||||
for = "/_astro/*"
|
for = "/_astro/*"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Cache-Control = "public, max-age=31536000, immutable"
|
Cache-Control = "public, max-age=31536000, immutable"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/*"
|
||||||
|
to = "/.netlify/build/entry.mjs"
|
||||||
|
status = 200
|
||||||
|
force = true
|
||||||
|
|||||||
Reference in New Issue
Block a user