Skip to content

Commit

Permalink
fix: remove tokenFile after production build (#20346)
Browse files Browse the repository at this point in the history
Clean the token file after
production build/execution
to not make ide app execution
run app in production mode.

Closes #20294
  • Loading branch information
caalador authored Oct 30, 2024
1 parent e86b69f commit b4b7e35
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ public static void updateBuildFile(PluginAdapterBuild adapter,

FileUtils.write(tokenFile, JsonUtil.stringify(buildInfo, 2) + "\n",
StandardCharsets.UTF_8.name());
tokenFile.deleteOnExit();
} catch (IOException e) {
adapter.logWarn("Unable to read token file", e);
}
Expand Down

0 comments on commit b4b7e35

Please sign in to comment.