-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp the RR7 app, fix all the problems related to deployments.
- Loading branch information
Showing
7 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* This is the server side config entry point | ||
*/ | ||
import config from '@plone/registry'; | ||
import ploneClient from '@plone/client'; | ||
import applyAddonConfiguration from '@plone/registry/addons-loader'; | ||
|
||
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 || undefined; | ||
|
||
const cli = ploneClient.initialize({ | ||
apiPath: config.settings.internalApiPath || config.settings.apiPath, | ||
}); | ||
|
||
config.registerUtility({ | ||
name: 'ploneClient', | ||
type: 'client', | ||
method: () => cli, | ||
}); | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
/** | ||
* This is the client side config entry point | ||
*/ | ||
import config from '@plone/registry'; | ||
import applyAddonConfiguration from '@plone/registry/addons-loader'; | ||
|
||
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', | ||
); | ||
config.settings.apiPath = 'http://localhost:3000'; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export async function loader() { | ||
return new Response(null, { | ||
status: 200, | ||
}); | ||
} |
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