|
throw new ReactException("WebRootPath was null, has the wwwroot folder been deployed along with your app?"); |
Use ContentRootPath if WebRootPath is null
- if both are null, then throw
Some applications use react ssr, server react components through API's without a wwwroot folder, and some applications use the react ssr only, still no wwwroot.
Or an additional method allowing the consumer of the package to pass in full paths of the scripts.
React.NET/src/React.AspNet.Middleware/AspNetFileSystem.cs
Line 44 in 6d5bdb0
Use ContentRootPath if WebRootPath is null
Some applications use react ssr, server react components through API's without a wwwroot folder, and some applications use the react ssr only, still no wwwroot.
Or an additional method allowing the consumer of the package to pass in full paths of the scripts.