Skip to content

Commit

Permalink
test: routes with continue
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Oct 16, 2023
1 parent c97bd01 commit 9af6cd1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,31 @@ export default {
addRoute: true,
},
],
config: {
routes: [
{
src: '/((?!assets/).*)',
headers: {
'X-VitePluginVercel-Test-2': 'test',
},
continue: true,
},
{
src: '/(.*)',
has: [
{
type: 'header',
key: 'Content-type',
value: 'text/html; charset=utf-8',
},
],
headers: {
'X-VitePluginVercel-Test-3': 'html',
},
continue: true,
},
],
},
},
// We manually add a list of dependencies to be pre-bundled, in order to avoid a page reload at dev start which breaks vike's CI
// (The 'react/jsx-runtime' entry is not needed in Vite 3 anymore.)
Expand Down

0 comments on commit 9af6cd1

Please sign in to comment.