Skip to content
#

Vercel

vercel logo

Vercel is the optimal workflow for frontend teams.

All-in-one: Static and Jamstack deployment, Serverless Functions, and Global CDN.

Here are 496 public repositories matching this topic...

next.js
jleck
jleck commented Sep 8, 2020

Bug report

Describe the bug

When trailingSlashes: true is added to next.config.js, server-side generation does not include the trailing slash in the router asPath property.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Enable trailing slashes
  2. Add useRouter() to component
  3. Log asPath property

Expected beh

swr
ahmedelgabri
ahmedelgabri commented Jan 13, 2020

A bit of context, we introduced swr two weeks ago to our codebase. Everything is working fine, but we started to get some reports about some parts of the app being broken in slightly older browsers (Chrome 49, Firefox 59, Edge 18, etc…)

We found out that swr was causing a syntax error in these browsers because webpack by default picked the ESM build (rightly so) but because it's not transp

Organization
vercel
Website
vercel.com
You can’t perform that action at this time.