GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Installation
  • Upgrade Guide
  • Key Differences
  • Containers vs Islands
  • JSX Frameworks
  • Configuration
  • FAQ
  • Contributing

This view

  • Original page
  • New address

GeezerVison is showing astro.qwik.dev — Installation — Qwik + Astro

@qwik.dev/astro

Installation

Get started with the Qwik Astro integration.

The CLI

To start a new Qwik Astro project, run the command in your preferred package manager.

npm create @qwik.dev/astro@latest

# or with pnpm
pnpm create @qwik.dev/astro@latest

# or with bun
bun create @qwik.dev/astro@latest

Existing projects

To install @qwik.dev/astro in an existing project, run the following from your project directory and follow the prompts.

npx astro add @qwik.dev/astro

# or with pnpm
pnpm astro add @qwik.dev/astro

TypeScript config

The integration needs the following in tsconfig.json for TypeScript to recognize Qwik’s JSX types.

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "@qwik.dev/core"
  }
}

If you don’t intend to use Qwik as your primary jsxImportSource, add the following at the top of each Qwik component file:

/** @jsxImportSource @qwik.dev/core */

Manual installation

Install the integration and Qwik core:

npm install @qwik.dev/astro @qwik.dev/core

Then add the integration to your astro.config.mjs:

import { defineConfig } from 'astro/config';
import qwik from '@qwik.dev/astro';

export default defineConfig({
  integrations: [qwik()],
});
On this page
MoreCreate an issueJoin our communityGitHub
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.