diff --git a/.changeset/green-jobs-jog.md b/.changeset/green-jobs-jog.md new file mode 100644 index 00000000..316147e4 --- /dev/null +++ b/.changeset/green-jobs-jog.md @@ -0,0 +1,18 @@ +--- +"@qwikdev/astro": patch +--- + +feat: support global config for renderOpts + +You can now pass the `renderOpts` option to the `qwik` integration to set global render options for all Qwik components. + +For example, let's say we wanted to change the base URL for all Qwik build assets on every component used in an Astro file. + +```ts +import { defineConfig } from "astro/config"; +import qwik from "@qwikdev/astro"; + +export default defineConfig({ + integrations: [qwik({ include: "**/qwik/*", renderOpts: { base: "my-cdn-url/build" } })] +}); +``` \ No newline at end of file diff --git a/apps/demo/src/pages/index.astro b/apps/demo/src/pages/index.astro index bb96d07a..6ff567a9 100644 --- a/apps/demo/src/pages/index.astro +++ b/apps/demo/src/pages/index.astro @@ -12,7 +12,7 @@ import { Counter as NativeCounter } from "@components/qwik/counter";