We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656aa29 commit 4651e6aCopy full SHA for 4651e6a
packages/remix-dev/vite/build.ts
@@ -155,6 +155,11 @@ async function getServerBuilds(ctx: RemixPluginContext): Promise<{
155
if (typeof serverBundleId !== "string") {
156
throw new Error(`The "serverBundles" function must return a string`);
157
}
158
+ if (!/^[a-zA-Z0-9-_]+$/.test(serverBundleId)) {
159
+ throw new Error(
160
+ `The "serverBundles" function must only return strings containing alphanumeric characters, hyphens and underscores.`
161
+ );
162
+ }
163
buildManifest.routeIdToServerBundleId[route.id] = serverBundleId;
164
165
let relativeServerBundleDirectory = path.relative(
0 commit comments