Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rodolf
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
cubicweb
cubes
Rodolf
Commits
b22365fca6cc
Commit
b22365fca6cc
authored
11 months ago
by
Arnaud Vergnet
Browse files
Options
Downloads
Patches
Plain Diff
chore(frontend): do not require api endpoint on build
parent
f7bd8e9c9153
No related branches found
No related tags found
1 merge request
!47
feat(frontend): Allow specifying customizations using env variables
Pipeline
#231608
passed
11 months ago
Stage: install
Stage: lint
Stage: build
Stage: tests
Stage: release
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/app/layout.tsx
+1
-1
1 addition, 1 deletion
frontend/src/app/layout.tsx
frontend/src/components/BaseLayout.tsx
+2
-2
2 additions, 2 deletions
frontend/src/components/BaseLayout.tsx
with
3 additions
and
3 deletions
frontend/src/app/layout.tsx
+
1
−
1
View file @
b22365fc
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
const
APP_LOGO
=
process
.
env
.
RODOLF_APP_LOGO
;
const
APP_LOGO
=
process
.
env
.
RODOLF_APP_LOGO
;
if
(
!
API_ENDPOINT
)
{
if
(
!
API_ENDPOINT
)
{
throw
new
E
rror
(
"
No api endpoint configured
"
);
console
.
e
rror
(
"
No api endpoint configured
"
);
}
}
return
(
return
(
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/BaseLayout.tsx
+
2
−
2
View file @
b22365fc
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
title
,
title
,
logoBase64
,
logoBase64
,
}:
PropsWithChildren
<
{
}:
PropsWithChildren
<
{
endpoint
:
string
;
endpoint
?
:
string
;
title
:
string
;
title
:
string
;
logoBase64
?:
string
;
logoBase64
?:
string
;
}
>
)
{
}
>
)
{
return
(
return
(
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
title
:
string
;
title
:
string
;
logoBase64
?:
string
;
logoBase64
?:
string
;
}
>
)
{
}
>
)
{
return
(
return
(
<
ClientProvider
endpoint
=
{
endpoint
}
>
<
ClientProvider
endpoint
=
{
endpoint
??
""
}
>
<
CustomThemeProvider
>
<
CustomThemeProvider
>
<
Paper
<
Paper
elevation
=
{
0
}
elevation
=
{
0
}
...
...
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