From 6b31d4d992cdb751c65270d5c1efca6497999d13 Mon Sep 17 00:00:00 2001 From: Shishant Biswas Date: Sun, 15 Mar 2026 21:18:11 +0530 Subject: [PATCH] refactor vite.config, gitea workflow --- .gitea/workflows/build-and-deploy.yml | 6 +++--- vite.config.ts | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 2e863b0..48c4666 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -17,7 +17,7 @@ jobs: with: registry: gitea.bsws.in username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -31,8 +31,8 @@ jobs: with: images: gitea.bsws.in/${{ github.repository }} tags: | - type=raw,value=latest - type=sha + type=raw,value=tanstack-start,enable=${{ github.ref == 'refs/heads/start' }} + type=sha,prefix=sha- - name: Build and push uses: docker/build-push-action@v6 diff --git a/vite.config.ts b/vite.config.ts index 38b4585..190b264 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,7 +3,6 @@ import { devtools } from "@tanstack/devtools-vite"; import { tanstackStart } from "@tanstack/react-start/plugin/vite"; import react, { reactCompilerPreset } from '@vitejs/plugin-react' import babel from '@rolldown/plugin-babel' -import viteTsConfigPaths from "vite-tsconfig-paths"; import { fileURLToPath, URL } from "url"; import tailwindcss from "@tailwindcss/vite"; import { nitro } from "nitro/vite"; @@ -13,14 +12,12 @@ const config = defineConfig({ alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, + tsconfigPaths: true, }, plugins: [ nitro({ preset: "node-server" }), tailwindcss(), devtools(), - viteTsConfigPaths({ - projects: ["./tsconfig.json"], - }), tanstackStart(), react(), babel({ presets: [reactCompilerPreset()] })