Skip to content

Commit

Permalink
fix: more ensure-wrangler-assets-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 23, 2025
1 parent 8d899af commit 24e6222
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/react-ssr-workerd/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default defineConfig((_env) => ({
{
// ensure wrangler.toml assets.directory exists
name: "ensure-wrangler-assets-directory",
enforce: "pre",
config() {
mkdirSync("dist/client", { recursive: true });
},
Expand Down
7 changes: 7 additions & 0 deletions examples/vue-ssr-extra/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export default defineConfig((_env) => ({
},
}),
vitePluginVirtualIndexHtml(),
{
// ensure wrangler.toml assets.directory exists
name: "ensure-wrangler-assets-directory",
config() {
mkdirSync("dist/client", { recursive: true });

Check failure on line 34 in examples/vue-ssr-extra/vite.config.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'mkdirSync'.
},
},
],
environments: {
client: {
Expand Down

0 comments on commit 24e6222

Please sign in to comment.