-
-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve deployment settings, add apiPath/internalApiPath detection
- Loading branch information
Showing
18 changed files
with
92 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import config from '@plone/registry'; | ||
import applyAddonConfiguration from '@plone/registry/addons-loader'; | ||
|
||
applyAddonConfiguration(config); | ||
|
||
config.settings.apiPath = 'http://localhost:3000'; | ||
|
||
export default config; | ||
export default function install() { | ||
applyAddonConfiguration(config); | ||
config.settings.apiPath = | ||
process.env.PLONE_API_PATH || 'http://localhost:3000'; | ||
config.settings.internalApiPath = process.env.PLONE_INTERNAL_API_PATH || ''; | ||
console.log('API_PATH is:', config.settings.apiPath); | ||
console.log( | ||
'INTERNAL_API_PATH is:', | ||
config.settings.internalApiPath || 'not set', | ||
); | ||
return config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import config from '@plone/registry'; | ||
import applyAddonConfiguration from '@plone/registry/addons-loader'; | ||
|
||
applyAddonConfiguration(config); | ||
|
||
config.settings.apiPath = 'http://localhost:3000'; | ||
|
||
export default config; | ||
export default function install() { | ||
applyAddonConfiguration(config); | ||
config.settings.apiPath = | ||
process.env.PLONE_API_PATH || 'http://localhost:3000'; | ||
config.settings.internalApiPath = process.env.PLONE_INTERNAL_API_PATH || ''; | ||
console.log('API_PATH is:', config.settings.apiPath); | ||
console.log( | ||
'INTERNAL_API_PATH is:', | ||
config.settings.internalApiPath || 'not set', | ||
); | ||
return config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters