Skip to content

Commit

Permalink
docs: server.origin should not end with /
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Apr 21, 2022
1 parent d7540c8 commit 3a5332c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Expand Up @@ -706,7 +706,7 @@ Defines the origin of the generated asset URLs during development.
```js
export default defineConfig({
server: {
origin: 'http://127.0.0.1:8080/'
origin: 'http://127.0.0.1:8080'
}
})
```
Expand Down
2 changes: 2 additions & 0 deletions packages/vite/src/node/server/index.ts
Expand Up @@ -92,6 +92,8 @@ export interface ServerOptions extends CommonServerOptions {
fs?: FileSystemServeOptions
/**
* Origin for the generated asset URLs.
*
* @example `http://127.0.0.1:8080`
*/
origin?: string
/**
Expand Down

0 comments on commit 3a5332c

Please sign in to comment.