[Closes #17] Fixed issues in deploy pipeline and modified some Forgejo templates
This commit is contained in:
parent
845f830ab3
commit
7e17984377
10 changed files with 12 additions and 11 deletions
|
|
@ -1,11 +1,6 @@
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
### Proposed Changes
|
|
||||||
|
|
||||||
-
|
|
||||||
-
|
|
||||||
|
|
||||||
### Checklist before submitting
|
### Checklist before submitting
|
||||||
|
|
||||||
- [ ] I followed the guidelines in our [Contributing document](https://github.com/lburcusel/glowing-fiesta/blob/production/CONTRIBUTING.md)
|
- [ ] I followed the guidelines in our [Contributing document](https://git.burcusel.nl/public/glowing-fiesta/blob/production/CONTRIBUTING.md)
|
||||||
- [ ] My submission pass all tests
|
- [ ] My submission pass all tests
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
env:
|
env:
|
||||||
|
NUXT_PUBLIC_SITE_URL: ${{ vars.NUXT_PUBLIC_SITE_URL }}
|
||||||
DATABASE_URL: "N/A"
|
DATABASE_URL: "N/A"
|
||||||
BETTER_AUTH_SECRET: "N/A"
|
BETTER_AUTH_SECRET: "N/A"
|
||||||
BETTER_AUTH_URL: "N/A"
|
BETTER_AUTH_URL: "N/A"
|
||||||
|
|
@ -42,6 +43,7 @@ jobs:
|
||||||
- name: Build site
|
- name: Build site
|
||||||
env:
|
env:
|
||||||
NITRO_PRESET: node_cluster
|
NITRO_PRESET: node_cluster
|
||||||
|
NUXT_PUBLIC_SITE_URL: ${{ vars.NUXT_PUBLIC_SITE_URL }}
|
||||||
DATABASE_URL: "N/A"
|
DATABASE_URL: "N/A"
|
||||||
BETTER_AUTH_SECRET: "N/A"
|
BETTER_AUTH_SECRET: "N/A"
|
||||||
BETTER_AUTH_URL: "N/A"
|
BETTER_AUTH_URL: "N/A"
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
env:
|
env:
|
||||||
|
NUXT_PUBLIC_SITE_URL: ${{ vars.NUXT_PUBLIC_SITE_URL }}
|
||||||
DATABASE_URL: "N/A"
|
DATABASE_URL: "N/A"
|
||||||
BETTER_AUTH_SECRET: "N/A"
|
BETTER_AUTH_SECRET: "N/A"
|
||||||
BETTER_AUTH_URL: "N/A"
|
BETTER_AUTH_URL: "N/A"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ useSeoMeta({
|
||||||
ogTitle: "Glowing Fiesta - Create Account",
|
ogTitle: "Glowing Fiesta - Create Account",
|
||||||
description: "This is the create account page of a very nice all-purpose application",
|
description: "This is the create account page of a very nice all-purpose application",
|
||||||
ogDescription: "This is the create account page of a very nice all-purpose application",
|
ogDescription: "This is the create account page of a very nice all-purpose application",
|
||||||
ogImage: config.public.hostUrl + "/images/human.png",
|
ogImage: config.public.siteUrl + "/images/human.png",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ useSeoMeta({
|
||||||
ogTitle: "Glowing Fiesta - Login",
|
ogTitle: "Glowing Fiesta - Login",
|
||||||
description: "This is the login page of a very nice all-purpose application",
|
description: "This is the login page of a very nice all-purpose application",
|
||||||
ogDescription: "This is the login page of a very nice all-purpose application",
|
ogDescription: "This is the login page of a very nice all-purpose application",
|
||||||
ogImage: config.public.hostUrl + "/images/human.png",
|
ogImage: config.public.siteUrl + "/images/human.png",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ useSeoMeta({
|
||||||
ogTitle: "Glowing Fiesta - Logout",
|
ogTitle: "Glowing Fiesta - Logout",
|
||||||
description: "This is the logout page of a very nice all-purpose application",
|
description: "This is the logout page of a very nice all-purpose application",
|
||||||
ogDescription: "This is the logout page of a very nice all-purpose application",
|
ogDescription: "This is the logout page of a very nice all-purpose application",
|
||||||
ogImage: config.public.hostUrl + "/images/human.png",
|
ogImage: config.public.siteUrl + "/images/human.png",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ useSeoMeta({
|
||||||
ogTitle: "Glowing Fiesta - Homepage",
|
ogTitle: "Glowing Fiesta - Homepage",
|
||||||
description: "This is the homepage of a very nice all-purpose application",
|
description: "This is the homepage of a very nice all-purpose application",
|
||||||
ogDescription: "This is the homepage of a very nice all-purpose application",
|
ogDescription: "This is the homepage of a very nice all-purpose application",
|
||||||
ogImage: config.public.hostUrl + "/images/human.png",
|
ogImage: config.public.siteUrl + "/images/human.png",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export default defineNuxtConfig({
|
||||||
compatibilityDate: "2025-07-15",
|
compatibilityDate: "2025-07-15",
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
hostUrl: env.BETTER_AUTH_URL,
|
siteUrl: env.NUXT_PUBLIC_SITE_URL,
|
||||||
appVersion: packageJsonContent.version,
|
appVersion: packageJsonContent.version,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import { z } from "zod";
|
||||||
|
|
||||||
const EnvSchema = z.object({
|
const EnvSchema = z.object({
|
||||||
NODE_ENV: z.string(),
|
NODE_ENV: z.string(),
|
||||||
|
NUXT_PUBLIC_SITE_URL: z.string(),
|
||||||
DATABASE_URL: z.string(),
|
DATABASE_URL: z.string(),
|
||||||
BETTER_AUTH_SECRET: z.string(),
|
BETTER_AUTH_SECRET: z.string(),
|
||||||
BETTER_AUTH_URL: z.string(),
|
BETTER_AUTH_URL: z.string(),
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ describe("shared/utils/env", () => {
|
||||||
vi.resetModules();
|
vi.resetModules();
|
||||||
process.env = { ...originalEnv };
|
process.env = { ...originalEnv };
|
||||||
process.env.NODE_ENV = "test";
|
process.env.NODE_ENV = "test";
|
||||||
|
process.env.NUXT_PUBLIC_SITE_URL = "http://localhost:3000";
|
||||||
process.env.DATABASE_URL = "postgres://localhost:5432/db";
|
process.env.DATABASE_URL = "postgres://localhost:5432/db";
|
||||||
process.env.BETTER_AUTH_SECRET = "secret";
|
process.env.BETTER_AUTH_SECRET = "secret";
|
||||||
process.env.BETTER_AUTH_URL = "http://localhost:3000";
|
process.env.BETTER_AUTH_URL = "http://localhost:3000";
|
||||||
|
|
@ -23,6 +24,7 @@ describe("shared/utils/env", () => {
|
||||||
|
|
||||||
expect(env).toEqual({
|
expect(env).toEqual({
|
||||||
NODE_ENV: "test",
|
NODE_ENV: "test",
|
||||||
|
NUXT_PUBLIC_SITE_URL: "http://localhost:3000",
|
||||||
DATABASE_URL: "postgres://localhost:5432/db",
|
DATABASE_URL: "postgres://localhost:5432/db",
|
||||||
BETTER_AUTH_SECRET: "secret",
|
BETTER_AUTH_SECRET: "secret",
|
||||||
BETTER_AUTH_URL: "http://localhost:3000",
|
BETTER_AUTH_URL: "http://localhost:3000",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue