File tree Expand file tree Collapse file tree 5 files changed +7
-14
lines changed
Expand file tree Collapse file tree 5 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 1717 repository : ${{ github.event.pull_request.head.repo.full_name }}
1818 - uses : oven-sh/setup-bun@v2
1919 - run : bun install
20- - run : cd web && bun run buildPreview
20+ - run : cd web && bun run build
2121 - name : " upload build artifact"
2222 uses : " actions/upload-artifact@v4"
2323 with :
2424 name : " preview-build"
25- path : " web/build"
25+ path : |
26+ node_modules
27+ web/.svelte-kit
28+ web/node_modules
29+ include-hidden-files : true
Original file line number Diff line number Diff line change 3333 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3434 githubToken : ${{ secrets.GITHUB_TOKEN }}
3535 projectName : " diffs"
36- directory : ${{ steps.preview-build-artifact.outputs.download-path }}
36+ directory : ${{ steps.preview-build-artifact.outputs.download-path }}/web/.svelte-kit/cloudflare
3737 deploymentName : Preview
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "dev" : " vite dev" ,
88 "build" : " vite build" ,
9- "buildPreview" : " PREVIEW=true vite build" ,
109 "watch" : " vite build --watch" ,
1110 "preview" : " vite preview" ,
1211 "prepare" : " svelte-kit sync || echo ''" ,
2423 "@octokit/openapi-types" : " ^25.1.0" ,
2524 "@sveltejs/adapter-auto" : " ^6.0.1" ,
2625 "@sveltejs/adapter-cloudflare" : " ^7.0.3" ,
27- "@sveltejs/adapter-static" : " ^3.0.8" ,
2826 "@sveltejs/kit" : " ^2.21.2" ,
2927 "@sveltejs/vite-plugin-svelte" : " ^5.1.0" ,
3028 "@tailwindcss/vite" : " ^4.1.8" ,
Original file line number Diff line number Diff line change 11import bunAdapter from "svelte-adapter-bun" ;
22import cloudflareAdapter from "@sveltejs/adapter-cloudflare" ;
3- import staticAdapter from "@sveltejs/adapter-static" ;
43import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" ;
54
65let adapter = cloudflareAdapter ( ) ;
76if ( process . env . NODE_ENV === "development" ) {
87 adapter = bunAdapter ( ) ;
98}
10- if ( process . env . PREVIEW === "true" ) {
11- adapter = staticAdapter ( {
12- fallback : "index.html" ,
13- } ) ;
14- }
159
1610/** @type {import('@sveltejs/kit').Config } */
1711const config = {
You can’t perform that action at this time.
0 commit comments