-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
7,039 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Tools | ||
uses: ./.github/actions/install-tools | ||
|
||
- name: Install Dependencies | ||
uses: ./.github/actions/install-dependencies | ||
|
||
- name: Build Docs | ||
run: pnpm docs:build | ||
|
||
- name: Deploy to Netlify | ||
run: pnpm run docs:deploy --prod | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { netlifyEdgeAdapter } from '@builder.io/qwik-city/adapters/netlify-edge/vite' | ||
import { extendConfig } from '@builder.io/qwik-city/vite' | ||
import path from 'node:path' | ||
|
||
import baseConfig from '../../../vite.config.docs' | ||
|
||
export default extendConfig(baseConfig, () => ({ | ||
build: { | ||
rollupOptions: { | ||
input: [ | ||
path.join(__dirname, '../../entry.netlify-edge.tsx'), | ||
'@qwik-city-plan', | ||
], | ||
}, | ||
outDir: path.join( | ||
__dirname, | ||
'../../server/.netlify/edge-functions/entry.netlify-edge', | ||
), | ||
ssr: true, | ||
}, | ||
plugins: [netlifyEdgeAdapter()], | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { PlatformNetlify } from '@builder.io/qwik-city/middleware/netlify-edge' | ||
|
||
import { createQwikCity } from '@builder.io/qwik-city/middleware/netlify-edge' | ||
import { manifest } from '@qwik-client-manifest' | ||
import qwikCityPlan from '@qwik-city-plan' | ||
|
||
import render from './entry.ssr' | ||
|
||
declare global { | ||
type QwikCityPlatform = PlatformNetlify | ||
} | ||
|
||
export default createQwikCity({ | ||
qwikCityPlan, | ||
manifest, | ||
render, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export let workspace = { | ||
getConfiguration: () => ({ | ||
get: () => {}, | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build/* | ||
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build] | ||
publish = "docs/dist" | ||
command = "pnpm run docs:build" | ||
|
||
[functions] | ||
directory = "docs/server/.netlify/edge-functions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.