vike 0.4.256-commit-1576f08 → 0.4.256-commit-3de784e
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.
|
@@ -27,7 +27,7 @@ function getDeployConfigs(pageId, page) {
|
|
|
27
27
|
if (!edge && !isr)
|
|
28
28
|
return null;
|
|
29
29
|
if (isCallable(route)) {
|
|
30
|
-
const errMsg = (configName) => `The route of the page ${pageId} is defined via a Route Function — ${configName} isn't supported. Remove ${configName} or define the page's route using a Route String (or
|
|
30
|
+
const errMsg = (configName) => `The route of the page ${pageId} is defined via a Route Function — ${configName} isn't supported. Remove ${configName} or define the page's route using a Route String (or Filesystem Routing) instead of a Route Function.`;
|
|
31
31
|
assertWarning(!isr, errMsg('+isr'), { onlyOnce: true });
|
|
32
32
|
assertWarning(!edge, errMsg('+edge'), { onlyOnce: true });
|
|
33
33
|
return null;
|
|
@@ -2,6 +2,7 @@ import { getMagicString } from '../../shared/getMagicString.js';
|
|
|
2
2
|
import { serverEntryVirtualId } from '@brillout/vite-plugin-server-entry/plugin';
|
|
3
3
|
import { pluginCommon } from './common.js';
|
|
4
4
|
import '../../assertEnvVite.js';
|
|
5
|
+
import { escapeRegex } from '../../../../utils/escapeRegex.js';
|
|
5
6
|
export function pluginServerEntryInject(serverEntryId) {
|
|
6
7
|
return {
|
|
7
8
|
name: 'vike:pluginUniversalDeploy:serverEntry',
|
|
@@ -9,9 +10,7 @@ export function pluginServerEntryInject(serverEntryId) {
|
|
|
9
10
|
transform: {
|
|
10
11
|
order: 'post',
|
|
11
12
|
filter: {
|
|
12
|
-
id:
|
|
13
|
-
include: [serverEntryId],
|
|
14
|
-
},
|
|
13
|
+
id: new RegExp(escapeRegex(serverEntryId)),
|
|
15
14
|
},
|
|
16
15
|
handler(code, id) {
|
|
17
16
|
const { magicString, getMagicStringResult } = getMagicString(code, id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.256-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.256-commit-3de784e";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.256-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.256-commit-3de784e';
|