Skip to content

Commit 717e3f9

Browse files
lbogdanCompuIves
authored andcommitted
Rewrite /embed to /embed.html. Fixes codesandbox#158. (codesandbox#159)
1 parent 09b443f commit 717e3f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/start.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ function addMiddleware(devServer, index) {
177177
// If this heuristic doesn’t work well for you, don’t use `proxy`.
178178
htmlAcceptHeaders: ['text/html'],
179179
index,
180+
rewrites: [{ from: /\/embed/, to: '/embed.html' }],
180181
})
181182
);
182183
if (process.env.LOCAL_SERVER) {

0 commit comments

Comments
 (0)