Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic dashboard path #1337

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

iambabyninja
Copy link
Contributor

DASHBOARD_PATH = "/dashboard/"
in .env

@iambabyninja iambabyninja marked this pull request as draft October 2, 2024 15:05
cd `dirname $0`/app/dashboard
VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --assetsDir statics
cp ./build/index.html ./build/404.html
@iambabyninja iambabyninja marked this pull request as ready for review October 2, 2024 15:41
@iambabyninja
Copy link
Contributor Author

Before merging, it's necessary to change the workflow for building the container, specifically the section:

      - name: Build project
        working-directory: ./app/dashboard
        run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --base '/dashboard/'

Change it to:

     - name: Build project
        working-directory: ./app/dashboard
        run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --assetsDir statics

@ImMohammad20000
Copy link
Collaborator

It need to rebuild after chang path?

@ImMohammad20000
Copy link
Collaborator

Please change the target branch to dev

@iambabyninja
Copy link
Contributor Author

iambabyninja commented Oct 4, 2024

It need to rebuild after chang path?

no, only restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants