on 02-03-2021 1:17 PM
I am running a CAP Nodejs application and its generating for me Fiori links for data management.
Today when i tried to re-upload new version for the app, all the fiori links are gone! and direct link doesnt work!!!! (Localy everithing works fine)
What is happening?
Attached old version of with the fiori link:
Indeed, Fiori preview now by default only runs in development mode, i.e. when NODE_ENV != production, which is true locally. When deployed to a cloud environment, the preview feature is switched off (due to NODE_ENV==production). It has always been a dev helper tool rather than a productive feature. Do not rely on its capabilities in productive applications.
If you want to get it back, either set NODE_ENV != production in your deploy manifest (env variable), or set `cds.features.fiori_preview` to `true`.
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Typically in your package.json with
"cds": {
"features": { "fiori_preview": true }
}
If you have a second srv/package.json, then do it there.
We will soon publish a doc page that describes that.
Find here the updated documentation.
Have you tried:
export NODE_ENV=production
cds run
locally? Seems that the links now depend on this variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you're on Windows you have to use
set NODE_ENV=production
cds run
Have a look at the CHANGELOG.md#version-450---2021-02-01
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.