mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 12:16:40 +00:00
chore: remove Crowdin integration from index.html and update Vite config
This commit is contained in:
parent
06e076efff
commit
78804c49e1
2 changed files with 2 additions and 12 deletions
|
|
@ -154,14 +154,6 @@
|
|||
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
|
||||
<% if(isCrowdin){ %>
|
||||
<script type="text/javascript">
|
||||
var _jipt = []
|
||||
_jipt.push(['project', 'remnawave'])
|
||||
</script>
|
||||
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
||||
<% } %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root" class="root"></div>
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ export default defineConfig({
|
|||
webfontDownload(),
|
||||
ViteEjsPlugin((viteConfig) => {
|
||||
return {
|
||||
root: viteConfig.root,
|
||||
isCrowdin: process.env.CROWDIN === '1'
|
||||
root: viteConfig.root
|
||||
}
|
||||
})
|
||||
// splashScreen({
|
||||
|
|
@ -109,8 +108,7 @@ export default defineConfig({
|
|||
define: {
|
||||
__DOMAIN_BACKEND__: JSON.stringify(process.env.DOMAIN_BACKEND || 'example.com').trim(),
|
||||
__NODE_ENV__: JSON.stringify(process.env.NODE_ENV).trim(),
|
||||
__DOMAIN_OVERRIDE__: JSON.stringify(process.env.DOMAIN_OVERRIDE || '0').trim(),
|
||||
__CROWDIN__: JSON.stringify(process.env.CROWDIN || '0').trim()
|
||||
__DOMAIN_OVERRIDE__: JSON.stringify(process.env.DOMAIN_OVERRIDE || '0').trim()
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue