Skip to content

Commit

Permalink
fix: trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
itsacoyote committed Aug 21, 2024
1 parent 29db882 commit 560bc2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"hosting": {
"trailingSlash": false,
"public": ".output/public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
}
Expand Down
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ export default defineNuxtConfig({
'/_nuxt': { robots: false },
'/api/*': { robots: false },
},
experimental: {
defaults: {
nuxtLink: {
trailingSlash: 'remove',
},
},
},
$production: process.env.NUXT_SITE_ENV
? {}
: {
Expand Down
2 changes: 1 addition & 1 deletion server/api/search.json.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { serverQueryContent } from '#content/server';

export default eventHandler(async (event) => {
return serverQueryContent(event)
.where({ _type: 'markdown', navigation: { $ne: false } })
.where({ _type: 'markdown', navigation: { $ne: false }, _partial: false })
.find();
});

0 comments on commit 560bc2c

Please sign in to comment.