You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When runtime SSR is disabled, make our dev server behave like the deployed
173
173
// pre-rendered site would
174
174
if(!_build.ssr){
175
+
// Decode the URL path before checking against the prerender config
176
+
letdecodedPath=decodeURI(normalizedPath);
177
+
175
178
// When SSR is disabled this, file can only ever run during dev because we
176
179
// delete the server build at the end of the build
177
180
if(_build.prerender.length===0){
178
181
// ssr:false and no prerender config indicates "SPA Mode"
179
182
isSpaMode=true;
180
183
}elseif(
181
-
!_build.prerender.includes(normalizedPath)&&
182
-
!_build.prerender.includes(normalizedPath+"/")
184
+
!_build.prerender.includes(decodedPath)&&
185
+
!_build.prerender.includes(decodedPath+"/")
183
186
){
184
187
if(url.pathname.endsWith(".data")){
185
188
// 404 on non-pre-rendered `.data` requests
186
189
errorHandler(
187
190
newErrorResponseImpl(
188
191
404,
189
192
"Not Found",
190
-
`Refusing to SSR the path \`${normalizedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
193
+
`Refusing to SSR the path \`${decodedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
0 commit comments