@qwik.dev/router 2.0.0-beta.2 → 2.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/static/vite.d.ts +1 -1
- package/lib/adapters/azure-swa/vite/index.d.ts +2 -2
- package/lib/adapters/azure-swa/vite/index.mjs +9 -9
- package/lib/adapters/bun-server/vite/index.d.ts +2 -2
- package/lib/adapters/bun-server/vite/index.mjs +9 -7
- package/lib/adapters/cloud-run/vite/index.d.ts +2 -2
- package/lib/adapters/cloud-run/vite/index.mjs +9 -7
- package/lib/adapters/cloudflare-pages/vite/index.d.ts +2 -2
- package/lib/adapters/cloudflare-pages/vite/index.mjs +9 -24
- package/lib/adapters/deno-server/vite/index.d.ts +2 -2
- package/lib/adapters/deno-server/vite/index.mjs +9 -7
- package/lib/adapters/netlify-edge/vite/index.d.ts +2 -2
- package/lib/adapters/netlify-edge/vite/index.mjs +10 -14
- package/lib/adapters/node-server/vite/index.d.ts +2 -2
- package/lib/adapters/node-server/vite/index.mjs +9 -7
- package/lib/adapters/shared/vite/index.d.ts +13 -19
- package/lib/adapters/shared/vite/index.mjs +107 -139
- package/lib/adapters/ssg/vite/index.d.ts +13 -0
- package/lib/adapters/ssg/vite/index.mjs +18 -0
- package/lib/adapters/vercel-edge/vite/index.d.ts +3 -3
- package/lib/adapters/vercel-edge/vite/index.mjs +9 -11
- package/lib/chunks/error-handler.mjs +57 -0
- package/lib/chunks/format-error.mjs +137 -0
- package/lib/chunks/fs.mjs +254 -0
- package/lib/{static/node.mjs → chunks/index.mjs} +361 -563
- package/lib/chunks/mime-types.mjs +52 -0
- package/lib/chunks/routing.qwik.mjs +429 -0
- package/lib/chunks/types.qwik.mjs +22 -0
- package/lib/index.d.ts +240 -60
- package/lib/index.qwik.mjs +698 -983
- package/lib/middleware/aws-lambda/index.d.ts +3 -2
- package/lib/middleware/aws-lambda/index.mjs +8 -12
- package/lib/middleware/azure-swa/index.mjs +10 -216
- package/lib/middleware/bun/index.d.ts +11 -0
- package/lib/middleware/bun/index.mjs +24 -83
- package/lib/middleware/cloudflare-pages/index.mjs +10 -22
- package/lib/middleware/deno/index.d.ts +11 -0
- package/lib/middleware/deno/index.mjs +24 -83
- package/lib/middleware/firebase/index.mjs +7 -11
- package/lib/middleware/netlify-edge/index.mjs +10 -23
- package/lib/middleware/node/index.mjs +22 -87
- package/lib/middleware/request-handler/index.d.ts +89 -70
- package/lib/middleware/request-handler/index.mjs +584 -659
- package/lib/middleware/vercel-edge/index.mjs +15 -27
- package/lib/modules.d.ts +4 -12
- package/lib/service-worker/index.mjs +4 -0
- package/lib/{static → ssg}/index.d.ts +17 -17
- package/lib/ssg/index.mjs +14 -0
- package/lib/vite/index.d.ts +32 -10
- package/lib/vite/index.mjs +1524 -26934
- package/modules.d.ts +4 -12
- package/package.json +62 -68
- package/ssg.d.ts +2 -0
- package/static.d.ts +1 -1
- package/lib/adapters/azure-swa/vite/index.cjs +0 -96
- package/lib/adapters/bun-server/vite/index.cjs +0 -50
- package/lib/adapters/cloud-run/vite/index.cjs +0 -47
- package/lib/adapters/cloudflare-pages/vite/index.cjs +0 -115
- package/lib/adapters/deno-server/vite/index.cjs +0 -62
- package/lib/adapters/netlify-edge/vite/index.cjs +0 -129
- package/lib/adapters/node-server/vite/index.cjs +0 -50
- package/lib/adapters/shared/vite/index.cjs +0 -378
- package/lib/adapters/static/vite/index.cjs +0 -368
- package/lib/adapters/static/vite/index.d.ts +0 -10
- package/lib/adapters/static/vite/index.mjs +0 -331
- package/lib/adapters/vercel-edge/vite/index.cjs +0 -118
- package/lib/index.qwik.cjs +0 -1947
- package/lib/middleware/node/index.cjs +0 -314
- package/lib/middleware/request-handler/index.cjs +0 -1614
- package/lib/service-worker.cjs +0 -17
- package/lib/service-worker.mjs +0 -15
- package/lib/static/deno.mjs +0 -8
- package/lib/static/index.cjs +0 -67
- package/lib/static/index.mjs +0 -48
- package/lib/static/node.cjs +0 -1124
- package/lib/vite/index.cjs +0 -27445
- package/middleware/request-handler/generated/not-found-paths.ts +0 -7
- package/middleware/request-handler/generated/static-paths.ts +0 -35
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// re-export for typescript in old resolution mode
|
|
2
|
-
export * from '../../lib/adapters/
|
|
2
|
+
export * from '../../lib/adapters/ssg/vite';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @public */
|
|
5
5
|
export declare function azureSwaAdapter(opts?: AzureSwaAdapterOptions): any;
|
|
@@ -8,6 +8,6 @@ export declare function azureSwaAdapter(opts?: AzureSwaAdapterOptions): any;
|
|
|
8
8
|
export declare interface AzureSwaAdapterOptions extends ServerAdapterOptions {
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { SsgRenderOptions }
|
|
12
12
|
|
|
13
13
|
export { }
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { viteAdapter } from '../../shared/vite/index.mjs';
|
|
4
|
+
import '../../../chunks/error-handler.mjs';
|
|
5
|
+
|
|
5
6
|
function azureSwaAdapter(opts = {}) {
|
|
6
|
-
const env = process
|
|
7
|
+
const env = process?.env;
|
|
7
8
|
return viteAdapter({
|
|
8
9
|
name: "azure-swa",
|
|
9
|
-
origin:
|
|
10
|
+
origin: env?.ORIGIN ?? env?.URL ?? "https://yoursitename.region.2.azurestaticapps.net",
|
|
10
11
|
ssg: opts.ssg,
|
|
11
12
|
cleanStaticGenerated: true,
|
|
12
13
|
async generate({ outputEntries, serverOutDir, clientPublicOutDir }) {
|
|
@@ -56,6 +57,5 @@ function azureSwaAdapter(opts = {}) {
|
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
60
|
+
|
|
61
|
+
export { azureSwaAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @beta */
|
|
5
5
|
export declare function bunServerAdapter(opts?: bunServerAdapterOptions): any;
|
|
@@ -9,6 +9,6 @@ export declare interface bunServerAdapterOptions extends ServerAdapterOptions {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { SsgRenderOptions }
|
|
13
13
|
|
|
14
14
|
export { }
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { viteAdapter } from '../../shared/vite/index.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import '../../../chunks/error-handler.mjs';
|
|
5
|
+
|
|
3
6
|
function bunServerAdapter(opts = {}) {
|
|
4
|
-
const env = process
|
|
7
|
+
const env = process?.env;
|
|
5
8
|
return viteAdapter({
|
|
6
9
|
name: opts.name || "bun-server",
|
|
7
|
-
origin:
|
|
10
|
+
origin: env?.ORIGIN ?? env?.URL ?? "https://yoursitename.qwik.dev",
|
|
8
11
|
ssg: opts.ssg,
|
|
9
12
|
cleanStaticGenerated: true,
|
|
10
13
|
config() {
|
|
@@ -20,6 +23,5 @@ function bunServerAdapter(opts = {}) {
|
|
|
20
23
|
}
|
|
21
24
|
});
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
+
|
|
27
|
+
export { bunServerAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @public */
|
|
5
5
|
export declare function cloudRunAdapter(opts?: CloudRunAdapterOptions): any;
|
|
@@ -8,6 +8,6 @@ export declare function cloudRunAdapter(opts?: CloudRunAdapterOptions): any;
|
|
|
8
8
|
export declare interface CloudRunAdapterOptions extends ServerAdapterOptions {
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { SsgRenderOptions }
|
|
12
12
|
|
|
13
13
|
export { }
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { viteAdapter } from '../../shared/vite/index.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import '../../../chunks/error-handler.mjs';
|
|
5
|
+
|
|
3
6
|
function cloudRunAdapter(opts = {}) {
|
|
4
|
-
const env = process
|
|
7
|
+
const env = process?.env;
|
|
5
8
|
return viteAdapter({
|
|
6
9
|
name: "cloud-run",
|
|
7
|
-
origin:
|
|
10
|
+
origin: env?.ORIGIN ?? env?.URL ?? "https://your-app-name.run.app",
|
|
8
11
|
ssg: opts.ssg,
|
|
9
12
|
cleanStaticGenerated: true,
|
|
10
13
|
config() {
|
|
@@ -17,6 +20,5 @@ function cloudRunAdapter(opts = {}) {
|
|
|
17
20
|
}
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
+
|
|
24
|
+
export { cloudRunAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @public */
|
|
5
5
|
export declare function cloudflarePagesAdapter(opts?: CloudflarePagesAdapterOptions): any;
|
|
@@ -22,6 +22,6 @@ export declare interface CloudflarePagesAdapterOptions extends ServerAdapterOpti
|
|
|
22
22
|
staticPaths?: string[];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export {
|
|
25
|
+
export { SsgRenderOptions }
|
|
26
26
|
|
|
27
27
|
export { }
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { join, relative } from 'node:path';
|
|
3
|
+
import { n as normalizePathSlash } from '../../../chunks/fs.mjs';
|
|
4
|
+
import { viteAdapter } from '../../shared/vite/index.mjs';
|
|
5
|
+
import '../../../chunks/error-handler.mjs';
|
|
4
6
|
|
|
5
|
-
// packages/qwik-router/src/utils/fs.ts
|
|
6
|
-
function normalizePathSlash(path) {
|
|
7
|
-
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|
|
8
|
-
const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
9
|
-
if (isExtendedLengthPath || hasNonAscii) {
|
|
10
|
-
return path;
|
|
11
|
-
}
|
|
12
|
-
path = path.replace(/\\/g, "/");
|
|
13
|
-
if (path.endsWith("/")) {
|
|
14
|
-
path = path.slice(0, path.length - 1);
|
|
15
|
-
}
|
|
16
|
-
return path;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// packages/qwik-router/src/adapters/cloudflare-pages/vite/index.ts
|
|
20
|
-
import { viteAdapter } from "../../shared/vite/index.mjs";
|
|
21
7
|
function cloudflarePagesAdapter(opts = {}) {
|
|
22
|
-
const env = process
|
|
8
|
+
const env = process?.env;
|
|
23
9
|
return viteAdapter({
|
|
24
10
|
name: "cloudflare-pages",
|
|
25
|
-
origin:
|
|
11
|
+
origin: env?.CF_PAGES_URL ?? env?.ORIGIN ?? "https://your.cloudflare.pages.dev",
|
|
26
12
|
ssg: opts.ssg,
|
|
27
13
|
staticPaths: opts.staticPaths,
|
|
28
14
|
cleanStaticGenerated: true,
|
|
@@ -75,6 +61,5 @@ function cloudflarePagesAdapter(opts = {}) {
|
|
|
75
61
|
}
|
|
76
62
|
});
|
|
77
63
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
};
|
|
64
|
+
|
|
65
|
+
export { cloudflarePagesAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @beta */
|
|
5
5
|
export declare function denoServerAdapter(opts?: DenoServerAdapterOptions): any;
|
|
@@ -9,6 +9,6 @@ export declare interface DenoServerAdapterOptions extends ServerAdapterOptions {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { SsgRenderOptions }
|
|
13
13
|
|
|
14
14
|
export { }
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { viteAdapter } from '../../shared/vite/index.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import '../../../chunks/error-handler.mjs';
|
|
5
|
+
|
|
3
6
|
function denoServerAdapter(opts = {}) {
|
|
4
|
-
const env = process
|
|
7
|
+
const env = process?.env;
|
|
5
8
|
return viteAdapter({
|
|
6
9
|
name: opts.name || "deno-server",
|
|
7
|
-
origin:
|
|
10
|
+
origin: env?.ORIGIN ?? env?.URL ?? "https://yoursitename.qwik.dev",
|
|
8
11
|
ssg: opts.ssg,
|
|
9
12
|
cleanStaticGenerated: true,
|
|
10
13
|
config() {
|
|
@@ -32,6 +35,5 @@ function denoServerAdapter(opts = {}) {
|
|
|
32
35
|
}
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
+
|
|
39
|
+
export { denoServerAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @public */
|
|
5
5
|
export declare function netlifyEdgeAdapter(opts?: NetlifyEdgeAdapterOptions): any;
|
|
@@ -39,6 +39,6 @@ export declare interface NetlifyEdgeAdapterOptions extends ServerAdapterOptions
|
|
|
39
39
|
excludedPath?: string | string[];
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export {
|
|
42
|
+
export { SsgRenderOptions }
|
|
43
43
|
|
|
44
44
|
export { }
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import fs, { existsSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { viteAdapter, getParentDir } from '../../shared/vite/index.mjs';
|
|
4
|
+
import '../../../chunks/error-handler.mjs';
|
|
3
5
|
|
|
4
|
-
// packages/qwik-router/src/adapters/netlify-edge/vite/index.ts
|
|
5
|
-
import fs, { existsSync } from "node:fs";
|
|
6
|
-
import { join } from "node:path";
|
|
7
|
-
import { getParentDir, viteAdapter } from "../../shared/vite/index.mjs";
|
|
8
6
|
function netlifyEdgeAdapter(opts = {}) {
|
|
9
|
-
const env = process
|
|
7
|
+
const env = process?.env;
|
|
10
8
|
return viteAdapter({
|
|
11
9
|
name: "netlify-edge",
|
|
12
|
-
origin:
|
|
10
|
+
origin: env?.ORIGIN ?? env?.URL ?? "https://yoursitename.netlify.app",
|
|
13
11
|
ssg: opts.ssg,
|
|
14
12
|
staticPaths: opts.staticPaths,
|
|
15
13
|
cleanStaticGenerated: true,
|
|
16
14
|
config(config) {
|
|
17
|
-
|
|
18
|
-
const outDir = ((_a = config.build) == null ? void 0 : _a.outDir) || ".netlify/edge-functions/entry.netlify-edge";
|
|
15
|
+
const outDir = config.build?.outDir || ".netlify/edge-functions/entry.netlify-edge";
|
|
19
16
|
return {
|
|
20
17
|
resolve: {
|
|
21
18
|
conditions: ["webworker", "worker"]
|
|
@@ -38,7 +35,7 @@ function netlifyEdgeAdapter(opts = {}) {
|
|
|
38
35
|
publicDir: false
|
|
39
36
|
};
|
|
40
37
|
},
|
|
41
|
-
async generate({ serverOutDir }) {
|
|
38
|
+
async generate({ serverOutDir, basePathname }) {
|
|
42
39
|
if (opts.functionRoutes !== false) {
|
|
43
40
|
const excludedPath = [];
|
|
44
41
|
if (typeof opts.excludedPath === "string") {
|
|
@@ -87,6 +84,5 @@ function netlifyEdgeAdapter(opts = {}) {
|
|
|
87
84
|
}
|
|
88
85
|
});
|
|
89
86
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
};
|
|
87
|
+
|
|
88
|
+
export { netlifyEdgeAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerAdapterOptions } from '../../shared/vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
|
|
4
4
|
/** @beta */
|
|
5
5
|
export declare function nodeServerAdapter(opts?: NodeServerAdapterOptions): any;
|
|
@@ -9,6 +9,6 @@ export declare interface NodeServerAdapterOptions extends ServerAdapterOptions {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { SsgRenderOptions }
|
|
13
13
|
|
|
14
14
|
export { }
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { viteAdapter } from '../../shared/vite/index.mjs';
|
|
2
|
+
import 'node:path';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import '../../../chunks/error-handler.mjs';
|
|
5
|
+
|
|
3
6
|
function nodeServerAdapter(opts = {}) {
|
|
4
|
-
const env = process
|
|
7
|
+
const env = process?.env;
|
|
5
8
|
return viteAdapter({
|
|
6
9
|
name: opts.name || "node-server",
|
|
7
|
-
origin:
|
|
10
|
+
origin: env?.ORIGIN ?? env?.URL ?? "https://yoursitename.qwik.dev",
|
|
8
11
|
ssg: opts.ssg,
|
|
9
12
|
cleanStaticGenerated: true,
|
|
10
13
|
config() {
|
|
@@ -20,6 +23,5 @@ function nodeServerAdapter(opts = {}) {
|
|
|
20
23
|
}
|
|
21
24
|
});
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
+
|
|
27
|
+
export { nodeServerAdapter };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Plugin as Plugin_2 } from 'vite';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
|
|
3
3
|
import type { UserConfig } from 'vite';
|
|
4
4
|
|
|
5
5
|
/** @public */
|
|
6
|
-
export declare interface AdapterSSGOptions extends Omit<
|
|
6
|
+
export declare interface AdapterSSGOptions extends Omit<SsgRenderOptions, 'outDir' | 'origin'> {
|
|
7
7
|
/** Defines routes that should be static generated. Accepts wildcard behavior. */
|
|
8
8
|
include: string[];
|
|
9
9
|
/**
|
|
@@ -26,7 +26,7 @@ export declare interface AdapterSSGOptions extends Omit<StaticGenerateRenderOpti
|
|
|
26
26
|
origin?: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
declare interface
|
|
29
|
+
declare interface BuiltLayout {
|
|
30
30
|
filePath: string;
|
|
31
31
|
dirPath: string;
|
|
32
32
|
id: string;
|
|
@@ -34,7 +34,7 @@ declare interface BuildLayout {
|
|
|
34
34
|
layoutName: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
declare interface
|
|
37
|
+
declare interface BuiltRoute extends ParsedPathname {
|
|
38
38
|
/** Unique id built from its relative file system path */
|
|
39
39
|
id: string;
|
|
40
40
|
/** Local file system path */
|
|
@@ -42,15 +42,12 @@ declare interface BuildRoute extends ParsedPathname {
|
|
|
42
42
|
ext: string;
|
|
43
43
|
/** URL Pathname */
|
|
44
44
|
pathname: string;
|
|
45
|
-
layouts:
|
|
45
|
+
layouts: BuiltLayout[];
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/** @public */
|
|
49
49
|
export declare function getParentDir(startDir: string, dirName: string): string;
|
|
50
50
|
|
|
51
|
-
/** @public */
|
|
52
|
-
export declare const NOT_FOUND_PATHS_ID = "@qwik-router-not-found-paths";
|
|
53
|
-
|
|
54
51
|
declare interface ParsedPathname {
|
|
55
52
|
routeName: string;
|
|
56
53
|
pattern: RegExp;
|
|
@@ -66,12 +63,6 @@ declare interface PathnameSegmentPart {
|
|
|
66
63
|
rest: boolean;
|
|
67
64
|
}
|
|
68
65
|
|
|
69
|
-
/** @public */
|
|
70
|
-
export declare const RESOLVED_NOT_FOUND_PATHS_ID = "@qwik-router-not-found-paths.js";
|
|
71
|
-
|
|
72
|
-
/** @public */
|
|
73
|
-
export declare const RESOLVED_STATIC_PATHS_ID = "@qwik-router-static-paths.js";
|
|
74
|
-
|
|
75
66
|
/** @public */
|
|
76
67
|
export declare interface ServerAdapterOptions {
|
|
77
68
|
/**
|
|
@@ -83,10 +74,13 @@ export declare interface ServerAdapterOptions {
|
|
|
83
74
|
ssg?: AdapterSSGOptions | null;
|
|
84
75
|
}
|
|
85
76
|
|
|
86
|
-
/**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Implements the SSG after the build is complete. Also provides a `generate(...)` callback that is
|
|
79
|
+
* called after the SSG is complete, which allows for custom post-processing of the complete build
|
|
80
|
+
* results.
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
90
84
|
export declare function viteAdapter(opts: ViteAdapterPluginOptions): Plugin_2<never>;
|
|
91
85
|
|
|
92
86
|
/** @public */
|
|
@@ -104,7 +98,7 @@ declare interface ViteAdapterPluginOptions {
|
|
|
104
98
|
clientPublicOutDir: string;
|
|
105
99
|
serverOutDir: string;
|
|
106
100
|
basePathname: string;
|
|
107
|
-
routes:
|
|
101
|
+
routes: BuiltRoute[];
|
|
108
102
|
assetsDir?: string;
|
|
109
103
|
warn: (message: string) => void;
|
|
110
104
|
error: (message: string) => void;
|