Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fcos-suite-astro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fab City OS Suite
fcos-suite-astro
Commits
1bf317de
Commit
1bf317de
authored
1 year ago
by
Moritz Stückler
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/site-title-as-env' into 'main'
fix: site title as env See merge request
!46
parents
4fb8f471
8163ba24
No related branches found
Branches containing commit
No related tags found
1 merge request
!46
fix: site title as env
Pipeline
#8111
passed
1 year ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.example
+1
-0
1 addition, 0 deletions
.env.example
src/config/index.ts
+1
-1
1 addition, 1 deletion
src/config/index.ts
src/env.d.ts
+1
-0
1 addition, 0 deletions
src/env.d.ts
with
3 additions
and
1 deletion
.env.example
+
1
−
0
View file @
1bf317de
...
...
@@ -2,5 +2,6 @@ PUBLIC_SENDINBLUE_POST_FORM_DE=https://abc.sibforms.com/serve/123
PUBLIC_SENDINBLUE_POST_FORM_EN=https://abc.sibforms.com/serve/123
PUBLIC_MAPBOX_TOKEN=abc123
PUBLIC_HEAD_INJECT='<script async defer data-website-id="abc123" src="https://analytics.com"></script>'
PUBLIC_SITE_TITLE='Fab City OS Suite'
EDIT_LINK_BASE="https://gitlab.fabcity.hamburg/software/fchh-website-content/-/edit/%s/src/pages"
BASE_URL="/"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/config/index.ts
+
1
−
1
View file @
1bf317de
...
...
@@ -32,4 +32,4 @@ export const ICON_PACKS: Record<IconPackageName, CarbonIcon> = {
export
const
HEAD_INJECT
=
import
.
meta
.
env
.
PUBLIC_HEAD_INJECT
;
export
const
SITE_TITLE
=
"
Fab City OS Suite
"
export
const
SITE_TITLE
=
import
.
meta
.
env
.
SITE_TITLE
||
"
Fab City OS Suite
"
;
This diff is collapsed.
Click to expand it.
src/env.d.ts
+
1
−
0
View file @
1bf317de
...
...
@@ -8,6 +8,7 @@ interface ImportMetaEnv {
readonly
PUBLIC_HEAD_INJECT
:
string
;
readonly
PUBLIC_EDIT_LINK_BASE
:
string
;
readonly
PUBLIC_EDIT_LINK_BRANCH
:
string
;
readonly
PUBLIC_SITE_TITLE
:
string
;
}
interface
ImportMeta
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment