From 366d9b285ba95d517335524ce894230a0144da8c Mon Sep 17 00:00:00 2001 From: Siddhartha Basu Date: Mon, 12 Feb 2024 12:44:24 -0600 Subject: [PATCH] fix(dicty-frontpage): change base path in vite.config.ts from "/stockcenter" to "/" The DEPLOY_ENV variable was removed from .env.development as it was no longer needed in the development environment. The base path in vite.config.ts was changed to "/" to ensure that the application is served from the root path, which simplifies the routing structure and makes the application more accessible. --- apps/dicty-frontpage/.env.development | 1 - apps/dicty-frontpage/vite.config.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/dicty-frontpage/.env.development b/apps/dicty-frontpage/.env.development index ed7fb12c2f..3ee5be9b50 100644 --- a/apps/dicty-frontpage/.env.development +++ b/apps/dicty-frontpage/.env.development @@ -7,4 +7,3 @@ VITE_APP_LOGTO_API_FIRST_RESOURCE="https://user.dictybase.dev/api" VITE_APP_LOGTO_API_SECOND_RESOURCE="https://content.dictybase.dev/api" VITE_APP_FOOTER_JSON='https://raw.githubusercontent.com/dictyBase/migration-data/master/footer/footer-condensed.json' VITE_APP_NAVBAR_JSON='https://raw.githubusercontent.com/dictyBase/migration-data/master/navbar/navbar.json' -DEPLOY_ENV='development' diff --git a/apps/dicty-frontpage/vite.config.ts b/apps/dicty-frontpage/vite.config.ts index 1128a37069..57097821de 100644 --- a/apps/dicty-frontpage/vite.config.ts +++ b/apps/dicty-frontpage/vite.config.ts @@ -11,7 +11,7 @@ const viteConfig = defineConfig({ server: { port: 3003, }, - base: "/stockcenter", + base: "/", }) const vitestConfig = defineVitestConfig({