mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 03:14:31 +08:00
FIX: Use correct subfolder format for ember-cli config (#23754)
Ember expects a trailing slash on this value, which is different to the Rails app's behavior. Values without a trailing slash seemed to work for legacy ember-cli builds, but would lead to errors under embroider.
This commit is contained in:
parent
d7b64b121b
commit
7b5b3799c2
@ -4,7 +4,7 @@ module.exports = function (environment) {
|
|||||||
const ENV = {
|
const ENV = {
|
||||||
modulePrefix: "discourse",
|
modulePrefix: "discourse",
|
||||||
environment,
|
environment,
|
||||||
rootURL: process.env.DISCOURSE_RELATIVE_URL_ROOT || "/",
|
rootURL: `${process.env.DISCOURSE_RELATIVE_URL_ROOT ?? ""}/`, // Add a trailing slash (not required by the Rails app in this env variable)
|
||||||
locationType: "history",
|
locationType: "history",
|
||||||
historySupportMiddleware: false,
|
historySupportMiddleware: false,
|
||||||
EmberENV: {
|
EmberENV: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user