mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-23 04:40:40 +02:00
fix(docs): add base to og image using env variable
This commit is contained in:
parent
2ca9418138
commit
fe676590f2
@ -40,7 +40,7 @@ build-production:
|
|||||||
name: production
|
name: production
|
||||||
url: https://docs.castopod.org/
|
url: https://docs.castopod.org/
|
||||||
script:
|
script:
|
||||||
- pnpm run build --outDir=./dist/$CI_COMMIT_REF_SLUG --base=$CI_COMMIT_REF_SLUG
|
- BASE=/$CI_COMMIT_REF_SLUG pnpm run build --outDir=./dist/$CI_COMMIT_REF_SLUG --base=/$CI_COMMIT_REF_SLUG
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- docs/dist/$CI_COMMIT_REF_SLUG
|
- docs/dist/$CI_COMMIT_REF_SLUG
|
||||||
|
@ -4,11 +4,12 @@ import starlight from "@astrojs/starlight";
|
|||||||
import tailwind from "@astrojs/tailwind";
|
import tailwind from "@astrojs/tailwind";
|
||||||
|
|
||||||
const site = "https://docs.castopod.org/";
|
const site = "https://docs.castopod.org/";
|
||||||
|
const base = process.env.BASE ?? "/docs";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site,
|
site,
|
||||||
base: "/docs",
|
base,
|
||||||
integrations: [
|
integrations: [
|
||||||
starlight({
|
starlight({
|
||||||
title: "Castopod Docs",
|
title: "Castopod Docs",
|
||||||
@ -37,7 +38,7 @@ export default defineConfig({
|
|||||||
tag: "meta",
|
tag: "meta",
|
||||||
attrs: {
|
attrs: {
|
||||||
property: "og:image",
|
property: "og:image",
|
||||||
content: site + "open-graph.jpg?v=1",
|
content: base + "/open-graph.jpg?v=1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 147 KiB |
Loading…
Reference in New Issue
Block a user