Skip to content

Commit fa15699

Browse files
committed
include shiki route
1 parent aec50c6 commit fa15699

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/server/lib/routes.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ export const createCommonRoutes = ({
159159
}
160160
})
161161

162-
router.get(`${clientRoute}assets/*`, (req, res) => {
162+
// serve static assets from the dist'd Vite app
163+
router.get([
164+
`${clientRoute}assets/*`,
165+
`${clientRoute}shiki/*`,
166+
], (req, res) => {
163167
debug('proxying static assets %s, params[0] %s', req.url, req.params[0])
164168
const pathToFile = getPathToDist('app', 'assets', req.params[0])
165169

0 commit comments

Comments
 (0)