diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index b37dd57..de2fc59 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -40,6 +40,8 @@ jobs: - name: Install dependencies run: npm ci - name: Build + env: + VITE_API_URL: ${{ vars.VITE_API_URL }} run: npm run build - name: Setup Pages uses: actions/configure-pages@v4 diff --git a/.gitignore b/.gitignore index e73783a..bbaf3dc 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,4 @@ dist-ssr *.sw? # Environment Variables -# .env \ No newline at end of file +.env \ No newline at end of file diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..e088185 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +contests.ajaydandge.dev diff --git a/vite.config.js b/vite.config.js index 1b69c86..eee23df 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,5 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], - base: '/contests/', assetsInclude: ['**/*.png'] })