diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cli.ts | 4 | ||||
-rw-r--r-- | src/runtime.ts | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/cli.ts b/src/cli.ts index 9d1815256..d74656615 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -5,14 +5,14 @@ import { promises as fsPromises } from 'fs'; import yargs from 'yargs-parser'; import { loadConfig } from './config.js'; -import {build} from './build.js'; +import { build } from './build.js'; import devServer from './dev.js'; const { readFile } = fsPromises; const buildAndExit = async (...args: Parameters<typeof build>) => { const ret = await build(...args); process.exit(ret); -} +}; type Arguments = yargs.Arguments; type cliState = 'help' | 'version' | 'dev' | 'build'; diff --git a/src/runtime.ts b/src/runtime.ts index c8431fdb0..0cc55ecc7 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -138,13 +138,17 @@ export async function createRuntime(astroConfig: AstroConfig, { env, logging }: mount: { [astroRoot.pathname]: '/_astro', [internalPath.pathname]: '/_astro_internal', + public: '/', }, - plugins: [[new URL('../snowpack-plugin.cjs', import.meta.url).pathname, astroPlugOptions]], + plugins: [[new URL('../snowpack-plugin.cjs', import.meta.url).pathname, astroPlugOptions], '@snowpack/plugin-sass', '@snowpack/plugin-svelte', '@snowpack/plugin-vue'], devOptions: { open: 'none', output: 'stream', port: 0, }, + buildOptions: { + out: astroConfig.dist, + }, packageOptions: { knownEntrypoints: ['preact-render-to-string'], external: ['@vue/server-renderer', 'node-fetch'], |