Skip to content

Commit 226dc10

Browse files
committed
feat: add option to change public directory
1 parent 7d98afa commit 226dc10

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/start/config/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function defineConfig(baseConfig = {}) {
7171
let { vite = {}, ...start } = baseConfig;
7272
const extensions = [...DEFAULT_EXTENSIONS, ...(start.extensions || [])];
7373
start = defu(start, {
74+
publicDir: "./public",
7475
appRoot: "./src",
7576
routeDir: "./routes",
7677
ssr: true,
@@ -110,7 +111,7 @@ export function defineConfig(baseConfig = {}) {
110111
name: "public",
111112
type: "static",
112113
base: "/",
113-
dir: "./public"
114+
dir: start.publicDir
114115
},
115116
{
116117
name: "ssr",

0 commit comments

Comments
 (0)