diff --git a/UPGRADE.md b/UPGRADE.md index 3a099e6..511dac7 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -319,13 +319,13 @@ You may wish to add the following additional scripts to your `package.json`: If you prefer to build your assets on deploy instead of committing them to your repository, you may wish to add the SSR output directory to your `.gitignore` file: ```gitignore -/storage/ssr +/bootstrap/ssr ``` You may start the SSR server using `node`: ```sh -node storage/ssr/ssr.js +node bootstrap/ssr/ssr.js ``` ### Wrapping up @@ -479,6 +479,6 @@ rm vite.config.js You may also wish to remove any `.gitignore` paths you are no longer using: ```gitignore +- /bootstrap/ssr - /public/build -- /storage/ssr ``` diff --git a/package.json b/package.json index 6d55efd..8df9bf9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "build-plugin": "rm -rf dist && tsc && cp src/dev-server-index.html dist/", "build-inertia-helpers": "rm -rf inertia-helpers && tsc --project tsconfig.inertia-helpers.json", "lint": "eslint --ext .ts ./src ./tests", - "ssr:serve": "vite build --ssr && node storage/ssr/ssr.js", "test": "vitest run" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index 98bbae9..7b4c219 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ interface PluginConfig { /** * The directory where the SSR bundle should be written. * - * @default 'storage/ssr' + * @default 'bootstrap/ssr' */ ssrOutputDirectory?: string @@ -305,7 +305,7 @@ function resolvePluginConfig(config: string|string[]|PluginConfig): Required { const ssrConfig = plugin.config({ build: { ssr: true } }, { command: 'build', mode: 'production' }) expect(ssrConfig.base).toBe('/build/') expect(ssrConfig.build.manifest).toBe(false) - expect(ssrConfig.build.outDir).toBe('storage/ssr') + expect(ssrConfig.build.outDir).toBe('bootstrap/ssr') expect(ssrConfig.build.rollupOptions.input).toBe('resources/js/ssr.js') })