Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: deploy env variables

Smaug67392d5690b92da5
diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml
index 97a92552..e41eee2b 100755
--- a/.github/workflows/deploy_to_prod.yml
+++ b/.github/workflows/deploy_to_prod.yml
@@ -37,6 +37,10 @@ jobs:
GOOS=linux GOARCH=amd64 go build -o backend_app
- name: Build frontend
+ env:
+ NUXT_PUBLIC_BASE_URL: https://alexandrie-hub.fr
+ NUXT_PUBLIC_BASE_API: https://api.alexandrie-hub.fr
+ NUXT_PUBLIC_BASE_CDN: https://cdn.alexandrie-hub.fr
run: |
cd frontend
bun install
diff --git a/frontend/app/App.vue b/frontend/app/App.vue
index 429effe3..48507e08 100644
--- a/frontend/app/App.vue
+++ b/frontend/app/App.vue
@@ -31,10 +31,30 @@ router.beforeEach((to, from) => {
const canonicalUrl = computed(() => new URL(route.path, requestUrl.origin || __BASE_URL__).toString());
useHead({
+ link: [
+ {
+ rel: 'canonical',
+ href: __BASE_URL__,
+ },
+ {
+ rel: 'preconnect',
+ href: __BASE_API__,
+ },
+ {
+ rel: 'preconnect',
+ href: __BASE_CDN__,
+ },
+ ...(i18nHead.value.link || []),
+ ],
+ meta: [
+ {
+ property: 'og:url',
+ content: __BASE_URL__,
+ },
+ ],
htmlAttrs: {
lang: i18nHead.value.htmlAttrs?.lang,
},
- link: [...(i18nHead.value.link || [])],
script: [
{
type: 'application/ld+json',
@@ -79,29 +99,6 @@ useSeoMeta({
twitterDescription: () => t('landing.seo.description'),
twitterImage: () => `${requestUrl.origin || __BASE_URL__}/screenshots/mock/0.png`,
});
-
-useHead({
- link: [
- {
- rel: 'canonical',
- href: __BASE_URL__,
- },
- {
- rel: 'preconnect',
- href: __BASE_API__,
- },
- {
- rel: 'preconnect',
- href: __BASE_CDN__,
- },
- ],
- meta: [
- {
- property: 'og:url',
- content: __BASE_URL__,
- },
- ],
-});
</script>
<style lang="scss">
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 4892a9e7..0a7b3157 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -145,6 +145,7 @@ export default defineNuxtConfig({
{ code: 'it', file: 'it/index.ts', language: 'it-IT' },
],
strategy: 'prefix_except_default',
+
baseUrl: import.meta.env.NUXT_PUBLIC_BASE_URL,
pages: {
'dashboard/index': false,