mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
Use base url for building actions
This commit is contained in:
parent
08e226cd0c
commit
9bd31c4c7e
3 changed files with 3 additions and 2 deletions
2
.github/workflows/preview_pull_request.yml
vendored
2
.github/workflows/preview_pull_request.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
|||
# - run: yarn check
|
||||
|
||||
- name: build
|
||||
run: yarn build
|
||||
run: yarn build --base "/revite/${{ github.ref }}/"
|
||||
|
||||
- name: publish preview
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
||||
|
|
|
@ -11,7 +11,7 @@ import Client from "./revoltjs/RevoltClient";
|
|||
|
||||
export default function Context({ children }: { children: Children }) {
|
||||
return (
|
||||
<Router>
|
||||
<Router basename={import.meta.env.BASE_URL}>
|
||||
<State>
|
||||
<Theme>
|
||||
<Settings>
|
||||
|
|
1
src/env.d.ts
vendored
1
src/env.d.ts
vendored
|
@ -1,6 +1,7 @@
|
|||
interface ImportMetaEnv {
|
||||
VITE_API_URL: string;
|
||||
VITE_THEMES_URL: string;
|
||||
BASE_URL: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
|
Loading…
Reference in a new issue