Open leonleles opened 1 month ago
I am experiencing this error in production. The plugin works fine on localhost. What could be happening?
"preview-button": { config: { contentTypes: [ { uid: 'api::country.country', draft: { url: process.env.URL_PAGE, query: { _preview: "true", }, }, published: { url: process.env.URL_PAGE, }, }, { uid: 'api::city.city', draft: { url: process.env.URL_PAGE, query: { _preview: "true", }, }, published: { url: process.env.URL_PAGE, }, }, ], }, },
I found that the plugin settings in the plugins.ts file are not injecting the env('URL_PAGE'). Do you have any idea how to fix it?
@strapi/strapi": "4.24.2
I am experiencing this error in production. The plugin works fine on localhost. What could be happening?