Skip to content

Commit

Permalink
fix default config params
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Aug 27, 2023
1 parent f6b68aa commit 61207da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vinxi-router/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function apiRouter({
base = "/api",
handler = fileURLToPath(new URL("./handler.js", import.meta.url)),
plugins = () => [],
}) {
} = {}) {
return {
name: "api",
mode: "handler",
Expand Down
2 changes: 1 addition & 1 deletion packages/vinxi-router/spa.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function spaRouter({
plugins = () => [],
dir = undefined,
style = undefined,
}) {
} = {}) {
return {
name: "client",
mode: "spa",
Expand Down
2 changes: 1 addition & 1 deletion packages/vinxi-router/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* @returns {import('vinxi').RouterSchema}
*/
export function publicDir() {
export function publicDir({} = {}) {
return {
name: "public",
mode: "static",
Expand Down

0 comments on commit 61207da

Please sign in to comment.