Qwik

Documentation

Quickstart

Installation

npm create --yes qwik@latestcd qwik-appnpm run qwik add static

Configuration

Update your origin in the newly generated static config:

adapters/static/vite.config.ts

import { staticAdapter } from '@builder.io/qwik-city/adapters/static/vite'import { extendConfig } from '@builder.io/qwik-city/vite'import baseConfig from '../../vite.config'export default extendConfig(baseConfig, () => {  return {    build: {      ssr: true,      rollupOptions: {        input: ['@qwik-city-plan'],      },    },    plugins: [      staticAdapter({        origin: 'https://qwik.bunny-launcher.net',      }),    ],  }})

Deployment

Build

npm run buildnpm run build.server

Preview

npx --yes serve@latest dist

Deploy

npx --yes bunny-launcher@latest --interactive