This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // right at the top of the file where you are declaring all other plugins | |
| const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
| module.exports = { | |
| // ... | |
| resolve: { | |
| alias: { | |
| "../../theme.config$": path.join(__dirname, "/semantic-ui/theme.config"), | |
| "../semantic-ui/site": path.join(__dirname, "/semantic-ui/site") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void Configure(IApplicationBuilder app) | |
| { | |
| app.UseSpa(builder => | |
| { | |
| builder.Options.SourcePath = "frontend"; | |
| if (Environment.IsDevelopment()) | |
| { | |
| builder.UseProxyToSpaDevelopmentServer("http://localhost:3001"); | |
| // builder.UseReactDevelopmentServer("start"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| // ... | |
| services.AddSpaStaticFiles(configuration => { configuration.RootPath = "frontend/build"; }); | |
| } | |
| public void Configure(IApplicationBuilder app) | |
| { | |
| // ... | |
| app.UseSpaStaticFiles(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <PropertyGroup> | |
| <TargetFramework>netcoreapp3.1</TargetFramework> | |
| <SpaRoot>frontend\</SpaRoot> | |
| <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <None Update="app.db" CopyToOutputDirectory="PreserveNewest" ExcludeFromSingleFile="true"/> | |
| </ItemGroup> | |
| <ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dependencies": {}, | |
| "reactSnap": { | |
| "puppeteerArgs": [ | |
| "--disable-setuid-sandbox", "--no-sandbox" | |
| ], | |
| "concurrency": 1, | |
| "inlineCss": false, | |
| "puppeteerExecutablePath": "/usr/bin/chromium-browser" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM murbanowicz/net-core-react-builder AS builder | |
| WORKDIR /build | |
| COPY . . | |
| RUN dotnet restore | |
| RUN dotnet publish -c Release -o /app | |
| FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS final | |
| WORKDIR /app | |
| COPY --from=builder /app . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum States { | |
| 'AL' = 'AL', | |
| 'AK' = 'AK', | |
| 'AS' = 'AS', | |
| 'AZ' = 'AZ', | |
| 'AR' = 'AR', | |
| 'CA' = 'CA', | |
| 'CO' = 'CO', | |
| 'CT' = 'CT', | |
| 'DE' = 'DE', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: Processing wrangler.jsonc configuration: | |
| - "kv_namespaces[0]" bindings should have a string "id" field but got {"binding":"SITEMAP_KV"}. | |
| - "env.dev" environment configuration | |
| - "env.dev.kv_namespaces[0]" bindings should have a string "id" field but got {"binding":"SITEMAP_KV"}. | |
| at readConfig (/Users/user/myproject/node_modules/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:121410:11) |