Skip to content

Commit f99bb04

Browse files
ci: fix preview deployments (#557)
* ci: fix preview deploments
1 parent d34cfbe commit f99bb04

File tree

3 files changed

+9
-60
lines changed

3 files changed

+9
-60
lines changed

.github/workflows/main.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@ jobs:
185185
run: |
186186
pnpm --filter=@codeimage/app build
187187
188-
- uses: amondnet/vercel-action@v19
188+
- uses: amondnet/vercel-action@v25.1.0
189189
with:
190-
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
191-
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
190+
vercel-token: ${{secrets.VERCEL_TOKEN}} # Required
191+
github-token: ${{secrets.GITHUB_TOKEN}} #Optional
192192
vercel-args: '--prebuilt' #Optional
193193
working-directory: apps/codeimage
194-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
195-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
194+
vercel-org-id: ${{secrets.VERCEL_ORG_ID}} #Required
195+
vercel-project-id: ${{secrets.VERCEL_PROJECT_ID}} #Required
196196
alias-domains: | #Optional
197197
codeimage-app-pr-{{PR_NUMBER}}.vercel.app
198198
@@ -238,7 +238,7 @@ jobs:
238238
run: |
239239
pnpm --filter=@codeimage/app build
240240
241-
- uses: amondnet/vercel-action@v19
241+
- uses: amondnet/vercel-action@v25.1.0
242242
with:
243243
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
244244
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
@@ -282,7 +282,7 @@ jobs:
282282
run: |
283283
pnpm --filter=@codeimage/highlight build:dev
284284
285-
- uses: amondnet/vercel-action@v19
285+
- uses: amondnet/vercel-action@v25.1.0
286286
with:
287287
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
288288
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
@@ -329,7 +329,7 @@ jobs:
329329
run: |
330330
pnpm --filter=@codeimage/website build
331331
332-
- uses: amondnet/vercel-action@v19
332+
- uses: amondnet/vercel-action@v25.1.0
333333
with:
334334
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
335335
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional

apps/codeimage/vite.config.ts

+1-46
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,10 @@
1+
import {vanillaExtractPlugin} from '@codeimage/vanilla-extract';
12
import {defineConfig, Plugin} from 'vite';
23
import solidPlugin from 'vite-plugin-solid';
3-
import {vanillaExtractPlugin} from '@codeimage/vanilla-extract';
44
// import {VitePWA, VitePWAOptions} from 'vite-plugin-pwa';
55
import tsconfigPaths from 'vite-tsconfig-paths';
66
import {withStaticVercelPreview} from '../../scripts/vercel-output-build';
77

8-
// const pwaOptions: Partial<VitePWAOptions> = {
9-
// base: '/',
10-
// manifest: {
11-
// name: 'Codeimage',
12-
// orientation: 'portrait',
13-
// dir: 'ltr',
14-
// short_name: 'Codeimage',
15-
// start_url: '.',
16-
// display: 'standalone',
17-
// background_color: '#1a1a1a',
18-
// description: 'Create elegant screenshots of your source code.',
19-
// theme_color: '#1a1a1a',
20-
// icons: [
21-
// {
22-
// src: '/pwa/manifest-icon-192.maskable.png',
23-
// sizes: '192x192',
24-
// type: 'image/png',
25-
// purpose: 'any',
26-
// },
27-
// {
28-
// src: '/pwa/manifest-icon-192.maskable.png',
29-
// sizes: '192x192',
30-
// type: 'image/png',
31-
// purpose: 'maskable',
32-
// },
33-
// {
34-
// src: '/pwa/manifest-icon-512.maskable.png',
35-
// sizes: '512x512',
36-
// type: 'image/png',
37-
// purpose: 'any',
38-
// },
39-
// {
40-
// src: '/pwa/manifest-icon-512.maskable.png',
41-
// sizes: '512x512',
42-
// type: 'image/png',
43-
// purpose: 'maskable',
44-
// },
45-
// ],
46-
// },
47-
// srcDir: 'src',
48-
// filename: 'sw.ts',
49-
// strategies: 'injectManifest',
50-
// registerType: 'autoUpdate',
51-
// };
52-
538
export default defineConfig(({mode}) => ({
549
plugins: [
5510
vanillaExtractPlugin(),

vercel.json

-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"rewrites": [
3-
{
4-
"source": "/(.*)",
5-
"destination": "/"
6-
}
7-
],
82
"github": {
93
"enabled": false
104
}

0 commit comments

Comments
 (0)