这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/rspeedy > Server > base

Server.base property

Configure the base path of the server.

Signature:

base?: string | undefined;

Default Value

'/'

Remarks

Users can access lynx bundle through http://<host>:<port>/main.lynx.bundle by default.

If you want to access lynx bundle through http://<host>:<port>/foo/main.lynx.bundle, you can change server.base to /foo

you can refer to server.base for more information.

Example

import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  server: {
    base: '/dist'
  },
})