Use base url for building actions
parent
578e64aee3
commit
293da5cb07
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
# - run: yarn check
|
# - run: yarn check
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: yarn build
|
run: yarn build --base "/revite/${{ github.ref }}/"
|
||||||
|
|
||||||
- name: publish preview
|
- name: publish preview
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
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 }) {
|
export default function Context({ children }: { children: Children }) {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router basename={import.meta.env.BASE_URL}>
|
||||||
<State>
|
<State>
|
||||||
<Theme>
|
<Theme>
|
||||||
<Settings>
|
<Settings>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
VITE_API_URL: string;
|
VITE_API_URL: string;
|
||||||
VITE_THEMES_URL: string;
|
VITE_THEMES_URL: string;
|
||||||
|
BASE_URL: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue