mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-07-13 02:04:47 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 847bcf9bac | |||
| 6b584bdfbf |
+1
-1
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/ico+xml" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BeamMP Website</title>
|
||||
<script defer src="https://analytics.beammp.com/script.js" data-website-id="9f9e912d-3470-4048-9f11-5dd360b701e7"></script>
|
||||
<script defer src="https://analytics.beammp.com/script.js" data-website-id="9f9e912d-3470-4048-9f11-5dd360b701e7" data-performance="true"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -39,6 +39,12 @@ server {
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Legacy Keymaster paths moved permanently to the dedicated domain.
|
||||
# Match both localized and non-localized URLs.
|
||||
location ~* ^/(?:[a-z]{2}/)?(?:keymaster|k/dashboard)/?$ {
|
||||
return 301 https://keymaster.beammp.com/;
|
||||
}
|
||||
|
||||
# SPA fallback: all other paths go to index.html so Vue Router can render the
|
||||
# correct view (including the NotFound page for unknown routes).
|
||||
location / {
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "beammp-website",
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "beammp-website",
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"dependencies": {
|
||||
"@tailwindcss/typography": "^0.5.20",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "beammp-website",
|
||||
"private": true,
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -86,6 +86,22 @@ const baseRoutes = [
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
|
||||
// Redirect route for old keymaster
|
||||
{
|
||||
path: 'keymaster',
|
||||
redirect: (to) => {
|
||||
window.location.replace('https://keymaster.beammp.com/')
|
||||
return `/${to.params.locale || 'en'}`
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'k/dashboard',
|
||||
redirect: (to) => {
|
||||
window.location.replace('https://keymaster.beammp.com/')
|
||||
return `/${to.params.locale || 'en'}`
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
const routes = [
|
||||
|
||||
Reference in New Issue
Block a user