For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/rspeedy.server.base.md.
This is the dev preview website. Check out the document at 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'
  },
})