Skip to content

Commit

Permalink
🎬 (#2166)
Browse files Browse the repository at this point in the history
* 🎬

* 🌯

* 🍡
  • Loading branch information
manucorporat committed Nov 17, 2022
1 parent a55fd64 commit 8d8ce60
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/docs/adaptors/cloudflare-pages/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { extendConfig } from '@builder.io/qwik-city/vite';
import baseConfig from '../../vite.config';

export default extendConfig(baseConfig, () => {
console.log(process.env.CF_PAGES_BRANCH);
return {
build: {
ssr: true,
Expand All @@ -12,7 +13,12 @@ export default extendConfig(baseConfig, () => {
},
plugins: [
cloudflarePagesAdaptor({
staticGenerate: true,
staticGenerate: {
origin:
process.env.CF_PAGES_BRANCH === 'main'
? 'https://qwik.builder.io'
: process.env.CF_PAGES_URL,
},
}),
],
};
Expand Down

0 comments on commit 8d8ce60

Please sign in to comment.