Skip to content

Commit

Permalink
fix: set an env var so reverting all base url and homepage vars back …
Browse files Browse the repository at this point in the history
…to the state they were in before this mess started
  • Loading branch information
alifeinbinary committed Oct 5, 2024
1 parent 2e47275 commit 7ce6592
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ dist-ssr

.env
*.tsbuildinfo
localhost_2024-*
localhost_2024-*
.env.production
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://stegg.alifeinbinary.com/",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
Expand Down
42 changes: 20 additions & 22 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@ import Sitemap from "vite-plugin-sitemap";
import { purgeCss } from "vite-plugin-tailwind-purgecss";

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
plugins: [
react(),
Sitemap({
hostname: "https://stegg.alifeinbinary.com/",
i18n: {
defaultLanguage: "en",
languages: ["en", "es", "fr"],
strategy: "prefix",
},
}),
purgeCss(),
],
base: mode === "production" ? "/" : "/",
build: {
assetsDir: "public",
sourcemap: true,
rollupOptions: {
treeshake: "recommended",
export default defineConfig({
plugins: [
react(),
Sitemap({
hostname: "https://stegg.alifeinbinary.com/",
i18n: {
defaultLanguage: "en",
languages: ["en", "es", "fr"],
strategy: "prefix",
},
minify: "esbuild",
}),
purgeCss(),
],
base: "/",
build: {
assetsDir: "public",
sourcemap: true,
rollupOptions: {
treeshake: "recommended",
},
};
minify: "esbuild",
},
});

0 comments on commit 7ce6592

Please sign in to comment.