Skip to content

Commit

Permalink
update frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Dec 6, 2023
1 parent f80a2ec commit a1c8d02
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
node-version: "21"
- name: Build Website
run: npm ci && npm run build
run: npm ci && npm run build-prod
working-directory: frontend
- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev": "vite",
"refresh-themes": "node ./scripts/refresh-themes.mjs",
"build": "tsc && vite build",
"build-prod": "tsc && vite build --base=/tweety/",
"watch": "vite build --watch",
"preview": "vite preview"
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ async function main() {
if (params.has("reload")) {
window.location.reload();
} else {
window.opener = window;
window.close()
// window.opener = window;
// window.close()
}
};

Expand Down
1 change: 0 additions & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('vite').UserConfig} */
export default {
base: process.env.CI ? '/tweety/' : '/',
define: {
__TWEETY_ORIGIN__: process.env.CI ? JSON.stringify('http://localhost:9999') : 'window.location.origin',
}
Expand Down

0 comments on commit a1c8d02

Please sign in to comment.