Skip to content

Commit b127c62

Browse files
committed
chore: one more
1 parent 1d8e02f commit b127c62

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/isr-fallback.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineNuxtModule({
1616
nitro.hooks.hook('compiled', () => {
1717
const spaTemplate = readFileSync(nitro.options.output.publicDir + '/200.html', 'utf-8')
1818
for (const path of [
19+
'package/[org]',
1920
'package/[org]/[name]',
2021
'package/[org]/[name]/v',
2122
'package/[org]/[name]/v/[version]',

server/middleware/canonical-redirects.global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const pages = [
2020
'/settings',
2121
]
2222
export default defineEventHandler(async event => {
23-
const path = event.path
23+
const path = event.path.split('?')[0]!
2424

2525
// username
2626
if (path.startsWith('~')) {

0 commit comments

Comments
 (0)