Skip to content

Commit

Permalink
fix(app-vite): "request" instead of "req" for SSR devserver #12972
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Mar 29, 2022
1 parent dee64f4 commit 1887dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-vite/lib/modes/ssr/ssr-devserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class SsrDevServer extends AppDevserver {
const { publicPath } = this.#appOptions

publicPath !== '/' && app.use((req, res, next) => {
const pathname = new URL(req.url, `http://${request.headers.host}`).pathname || '/'
const pathname = new URL(req.url, `http://${req.headers.host}`).pathname || '/'

if (pathname.startsWith(publicPath) === true) {
next()
Expand Down

0 comments on commit 1887dab

Please sign in to comment.