Skip to content

[🐞] 'origin' does not exist in type 'QwikCityBunOptions' #8250

@lontten

Description

@lontten

Which component is affected?

Qwik Runtime

Describe the bug

// Create the Qwik City Bun middleware
const { router, notFound, staticFile } = createQwikCity({
  render,
  qwikCityPlan,
  static: {
    cacheControl: "public, max-age=31536000, immutable",
  },
  origin: process.env.ORIGIN,
});

bun run build

transforming (150) node_modules/zod/dist/esm/v3/errors.jssrc/entry.bun.ts:23:3 - error TS2353: 
Object literal may only specify known properties, 
and 'origin' does not exist in type 'QwikCityBunOptions'.

23   origin: process.env.ORIGIN,
     ~~~~~~


Found 1 error in src/entry.bun.ts:23

Reproduction

nan

Steps to reproduce

  1. bun run qwik add bun
  2. add origin: process.env.ORIGIN,
  3. bun run build

System Info

System:
    OS: macOS 26.2
    CPU: (10) arm64 Apple M5
    Memory: 101.70 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.12.0 - /Users/lontten/.nvm/versions/node/v24.12.0/bin/node
    npm: 11.6.2 - /Users/lontten/.nvm/versions/node/v24.12.0/bin/npm
    bun: 1.3.6 - /Users/lontten/.nvm/versions/node/v24.12.0/bin/bun
    Deno: 2.6.3 - /Users/lontten/.nvm/versions/node/v24.12.0/bin/deno
  Browsers:
    Safari: 26.2
  npmPackages:
    @builder.io/qwik: ^1.18.0 => 1.18.0 
    @builder.io/qwik-city: ^1.18.0 => 1.18.0 
    typescript: 5.9.3 => 5.9.3 
    undici: * => 7.18.2 
    vite: ^7.1.9 => 7.3.1

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions