File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,12 @@ module.exports = (webpackEnv) => {
166
166
// The define plugin will replace these keys with their values during build
167
167
// time.
168
168
new webpack . DefinePlugin ( {
169
- __RW__API_PROXY_PATH : JSON . stringify ( redwoodConfig . web . apiProxyPath ) ,
169
+ // Flag to determine if we're in a Redwood Project
170
+ __REDWOOD__ : JSON . stringify ( true ) ,
171
+ // The Path to the Serverless Functions
172
+ __REDWOOD__API_PROXY_PATH : JSON . stringify (
173
+ redwoodConfig . web . apiProxyPath
174
+ ) ,
170
175
...getEnvVars ( ) ,
171
176
} ) ,
172
177
new Dotenv ( {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-undef */
2
2
// These values are replaced by the webpack define plugin
3
- window . __REDWOOD__API_PROXY_PATH = __RW__API_PROXY_PATH
3
+ window . __REDWOOD__API_PROXY_PATH = __REDWOOD__API_PROXY_PATH
You can’t perform that action at this time.
0 commit comments