Skip to content

Commit 4e40b37

Browse files
committed
Hindrer redirects fra intern dev-url
1 parent b099aa1 commit 4e40b37

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

server/src/server-setup/server-setup-dev.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ export const serverSetupDev = (expressApp: Express, nextApp: NextServer) => {
1414
});
1515

1616
// These paths should never redirect, to ensure the site will load correctly
17-
// when accessed from the Content Studio editor
17+
// when accessed via other applications (Content Studio editor or external archive/version history frontend)
1818
expressApp.all(
19-
['/draft/*', '/archive/*', '/editor/*', '/_next/*', '/gfx/*', '/api/*', '/_/*'],
19+
[
20+
'/render-from-props/*',
21+
'/draft/*',
22+
'/archive/*',
23+
'/editor/*',
24+
'/_next/*',
25+
'/gfx/*',
26+
'/api/*',
27+
'/_/*',
28+
],
2029
(req, res) => {
2130
return nextRequestHandler(req, res);
2231
}

0 commit comments

Comments
 (0)