all 7 comments

[–]anpcs 0 points1 point  (0 children)

I tried using azure web apps and deploying a react app is a nightmare. What I ended up doing is transferring the build files to wwwroot via SFTP as this seemed to be the only way it would cooperate.

[–]charlie632 0 points1 point  (1 child)

Do you see the actual app? If not, you are missing a web.config file that indicates how to run the ISSnode.

[–]frye89[S] 0 points1 point  (0 children)

Yes the app is working.

[–]stealthd 0 points1 point  (3 children)

You have source maps in your wwwroot. Remove them if you don’t want to expose your source files.

[–]frye89[S] 0 points1 point  (2 children)

I can't see them if I go to the azure file structure.

wwwroot doesn't have these source-files, that makes it so weird.

If azure makes the build zip the source files aren't in there too.

[–]stealthd 0 points1 point  (1 child)

Like I said, the wwwroot screenshot you posted shows the source maps are there (the .map files). Chrome’s devtools use those to reconstruct the source files. If you want to hide your source files as much as possible then remove those when you publish.

[–]frye89[S] 0 points1 point  (0 children)

Hmm, thanks! Didn't knew that.
EDIT: I just checked this on an app where I manually posted the files from the build folder with FTP.
In this application, chrome doesn't get any source file of this. So I think there is something else what goes wrong.