Skip to content

Commit

Permalink
ci: fix preview deployments (#557)
Browse files Browse the repository at this point in the history
* ci: fix preview deploments
  • Loading branch information
riccardoperra authored Aug 22, 2023
1 parent d34cfbe commit f99bb04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 60 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ jobs:
run: |
pnpm --filter=@codeimage/app build
- uses: amondnet/vercel-action@v19
- uses: amondnet/vercel-action@v25.1.0
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
vercel-token: ${{secrets.VERCEL_TOKEN}} # Required
github-token: ${{secrets.GITHUB_TOKEN}} #Optional
vercel-args: '--prebuilt' #Optional
working-directory: apps/codeimage
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
vercel-org-id: ${{secrets.VERCEL_ORG_ID}} #Required
vercel-project-id: ${{secrets.VERCEL_PROJECT_ID}} #Required
alias-domains: | #Optional
codeimage-app-pr-{{PR_NUMBER}}.vercel.app
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
run: |
pnpm --filter=@codeimage/app build
- uses: amondnet/vercel-action@v19
- uses: amondnet/vercel-action@v25.1.0
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:
run: |
pnpm --filter=@codeimage/highlight build:dev
- uses: amondnet/vercel-action@v19
- uses: amondnet/vercel-action@v25.1.0
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:
run: |
pnpm --filter=@codeimage/website build
- uses: amondnet/vercel-action@v19
- uses: amondnet/vercel-action@v25.1.0
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
Expand Down
47 changes: 1 addition & 46 deletions apps/codeimage/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,55 +1,10 @@
import {vanillaExtractPlugin} from '@codeimage/vanilla-extract';
import {defineConfig, Plugin} from 'vite';
import solidPlugin from 'vite-plugin-solid';
import {vanillaExtractPlugin} from '@codeimage/vanilla-extract';
// import {VitePWA, VitePWAOptions} from 'vite-plugin-pwa';
import tsconfigPaths from 'vite-tsconfig-paths';
import {withStaticVercelPreview} from '../../scripts/vercel-output-build';

// const pwaOptions: Partial<VitePWAOptions> = {
// base: '/',
// manifest: {
// name: 'Codeimage',
// orientation: 'portrait',
// dir: 'ltr',
// short_name: 'Codeimage',
// start_url: '.',
// display: 'standalone',
// background_color: '#1a1a1a',
// description: 'Create elegant screenshots of your source code.',
// theme_color: '#1a1a1a',
// icons: [
// {
// src: '/pwa/manifest-icon-192.maskable.png',
// sizes: '192x192',
// type: 'image/png',
// purpose: 'any',
// },
// {
// src: '/pwa/manifest-icon-192.maskable.png',
// sizes: '192x192',
// type: 'image/png',
// purpose: 'maskable',
// },
// {
// src: '/pwa/manifest-icon-512.maskable.png',
// sizes: '512x512',
// type: 'image/png',
// purpose: 'any',
// },
// {
// src: '/pwa/manifest-icon-512.maskable.png',
// sizes: '512x512',
// type: 'image/png',
// purpose: 'maskable',
// },
// ],
// },
// srcDir: 'src',
// filename: 'sw.ts',
// strategies: 'injectManifest',
// registerType: 'autoUpdate',
// };

export default defineConfig(({mode}) => ({
plugins: [
vanillaExtractPlugin(),
Expand Down
6 changes: 0 additions & 6 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
],
"github": {
"enabled": false
}
Expand Down

0 comments on commit f99bb04

Please sign in to comment.