fix the preview command base URL (#1897)
This commit is contained in:
parent
1acedb5ce8
commit
e373a379a1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ interface PreviewServer {
|
|||
/** The primary dev action */
|
||||
export default async function preview(config: AstroConfig, { logging }: PreviewOptions): Promise<PreviewServer> {
|
||||
const startServerTime = performance.now();
|
||||
const base = config.buildOptions.site ? new URL(config.buildOptions.site).pathname + '/' : '/';
|
||||
const base = config.buildOptions.site ? new URL(config.buildOptions.site).pathname : '/';
|
||||
|
||||
// Create the preview server, send static files out of the `dist/` directory.
|
||||
const server = http.createServer((req, res) => {
|
||||
|
|
Loading…
Reference in a new issue