Skip to content

Commit 31fcb03

Browse files
author
codewec
committed
fix: remove base url
1 parent 12ca6ef commit 31fcb03

6 files changed

Lines changed: 5 additions & 19 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ Run a prebuilt image from GHCR:
3737
docker run --name editoro \
3838
-p 3000:3000 \
3939
-v $(pwd)/data:/app/data \
40-
-e NUXT_PUBLIC_SITE_URL=http://localhost:3000 \
41-
ghcr.io/codewec/editoro:dev
40+
ghcr.io/codewec/editoro:latest
4241
```
4342

4443
Then open `http://localhost:3000`.

app/app.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<script setup lang="ts">
2-
const { t } = useI18n()
3-
const localeHead = useLocaleHead()
2+
const { t, locale } = useI18n()
43
54
useHead({
65
meta: [{ name: 'viewport', content: 'width=device-width, initial-scale=1' }],
76
link: [{ rel: 'icon', href: '/favicon.ico' }],
87
htmlAttrs: {
9-
lang: localeHead.value.htmlAttrs?.lang || 'en'
8+
lang: locale.value
109
}
1110
})
1211

deploy/lxc/lxd-editoro.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ config:
1818
restart: unless-stopped
1919
ports:
2020
- "3000:3000"
21-
environment:
22-
- NUXT_PUBLIC_SITE_URL=http://localhost:3000
2321
volumes:
2422
- /var/lib/editoro/data:/app/data
2523
runcmd:

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ services:
55
restart: unless-stopped
66
ports:
77
- "3000:3000"
8-
environment:
9-
NUXT_PUBLIC_SITE_URL: ${NUXT_PUBLIC_SITE_URL:-http://localhost:3000}
10-
NITRO_HOST: 0.0.0.0
11-
NITRO_PORT: 3000
128
volumes:
139
- ./data:/app/data

i18n.config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

nuxt.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ export default defineNuxtConfig({
2525
},
2626

2727
i18n: {
28-
baseUrl: process.env.NUXT_PUBLIC_SITE_URL || 'http://localhost:3000',
2928
strategy: 'no_prefix',
3029
defaultLocale: 'en',
3130
langDir: 'locales',
32-
vueI18n: './i18n.config.ts',
31+
detectBrowserLanguage: false,
3332
locales: [
3433
{ code: 'ru', language: 'ru-RU', name: 'Русский', file: 'ru.json' },
3534
{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' }
36-
],
37-
detectBrowserLanguage: false
35+
]
3836
}
3937
})

0 commit comments

Comments
 (0)