Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Culture
culture-views
Commits
c4a8756d1947
Commit
d3f871b3
authored
Sep 10, 2020
by
Fabien Amarger
Browse files
feat: [domain] Use config domain to define the view URL
parent
b9d1a818302d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/index.vd.json
View file @
c4a8756d
...
...
@@ -8,7 +8,7 @@
"resourceJs"
:
[],
"resourceMain"
:
{
"location"
:
"remote"
,
"uri"
:
"
https://culture.pages.logilab.fr/culture-views
/view_localisation.js"
"uri"
:
"
{DOMAIN}
/view_localisation.js"
}
}
]
src/localisation/localisation.tsx
View file @
c4a8756d
...
...
@@ -17,7 +17,7 @@ const DESCRIPTOR_LOCALISATION: definition.ViewDescriptor = {
resourceJs
:
[],
resourceMain
:
{
location
:
'
remote
'
,
uri
:
'
http
s
://
culture.pages.logilab.fr/culture-views
/view_localisation.js
'
,
uri
:
`
${
process
.
env
.
DOMAIN
??
"
http://
localhost:8080
"
}
/view_localisation.js
`
,
}
as
definition
.
ViewResourceRemote
,
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment