You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: New vite plugin config: useRelativePaths (#283)
* Add unit tests for findCommonPath so I know what its doing
* Add "useRelativePaths" option to vite plugin
* useRelativePaths in react examples
* Add docs for useRelativePaths
Copy file name to clipboardExpand all lines: docs/guide/build-and-deploy.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ The `viteFastify` plugin can be given the following options:
51
51
52
52
*`spa` - Set this to `true` to disable the SSR build entirely. Default: `false`.
53
53
*`clientModule` - The location of the SSR entry point, relative to the index.html file. Defaults to `index.js`. You can also use an absolute path to be extra safe.
54
+
*`useRelativePaths` - Set this to `true` to avoid saving absolute paths in the `vite.config.json` file. This is useful if the machine you run the build on is NOT the machine you plan to run the server on (for example: if you build on a local machine but then copy the results into a Docker container). This results in a more hermetic application distribution. In a future release, this will be defaulted to `true`.
54
55
55
56
Assuming you do not need to build your Fastify server itself, the only build script you need in your `package.json` file is below:
0 commit comments