Browse Source

build(spa): Add index.html for experimental SPA (#17586)

The logic here is slightly incorrect, we want to add the index.html when
SENTRY_EXPERIMENTAL_SPA is enabled, which will be true whe
DEPLOY_PREVIEW_CONFIG is configured.
Evan Purkhiser 5 years ago
parent
commit
d371e8c429
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webpack.config.js

+ 1 - 1
webpack.config.js

@@ -386,7 +386,7 @@ let appConfig = {
   devtool: IS_PRODUCTION ? 'source-map' : 'cheap-module-eval-source-map',
 };
 
-if (DEPLOY_PREVIEW_CONFIG) {
+if (SENTRY_EXPERIMENTAL_SPA) {
   /**
    * Generate a index.html file used for running the app in pure client mode.
    * This is currently used for PR deploy previews, where only the frontend