Skip to content

Commit

Permalink
fix(website): a temporary workaround (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Dec 24, 2023
1 parent dd2756d commit 0420913
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/waku/src/lib/builder/output-vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ import fs from 'node:fs';
import { connectMiddleware } from 'waku';
const entries = import(path.resolve('${config.distDir}', '${config.entriesJs}'));
export default function handler(req, res) {
// FIXME this is just a workaround for now
req.url = req.url.replace(/\\?.*$/, '');
connectMiddleware({ entries, ssr: ${ssr} })(req, res, () => {
const fname = path.join(
'${config.distDir}',
Expand Down

1 comment on commit 0420913

@vercel
Copy link

@vercel vercel bot commented on 0420913 Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

waku – ./

waku-daishi.vercel.app
waku.vercel.app
waku.gg
www.waku.gg
waku-git-main-daishi.vercel.app

Please sign in to comment.