Revize b6e24252
Přidáno uživatelem Lukáš Vlček před více než 2 roky(ů)
Backend/Backend/Program.cs | ||
---|---|---|
63 | 63 |
|
64 | 64 |
// AutoMapper |
65 | 65 |
RegisterMappings.Register(builder); |
66 |
var app = builder.Build(); |
|
67 | 66 |
|
68 | 67 |
|
69 |
app.UsePathBase("/law"); |
|
68 |
var app = builder.Build(); |
|
69 |
|
|
70 |
app.UsePathBase(builder.Configuration["BasePath"]); |
|
70 | 71 |
|
71 | 72 |
// Enable DateTime in PostgreSQL |
72 | 73 |
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
... | ... | |
104 | 105 |
app.Logger.LogInformation("Starting up"); |
105 | 106 |
|
106 | 107 |
|
107 |
|
|
108 | 108 |
// Database seeding |
109 | 109 |
using (var scope = app.Services.CreateScope()) |
110 | 110 |
{ |
Backend/Backend/appsettings.json | ||
---|---|---|
6 | 6 |
} |
7 | 7 |
}, |
8 | 8 |
"AllowedHosts": "*", |
9 |
"BasePath": "/law", |
|
9 | 10 |
"JwtConfig": { |
10 | 11 |
"Secret": "CJgvc9BtwJjnCExzKLB2ndtxERW3YMhqMMPNrBZuTJaskPqRVfZQHRUnbRHH9Ekp5zsaTSeM73vQSKvq48w2u8jTnKUn7Uhk2zBeD9wLz48ssKMppNC9HDTXSk6RWP5PtXfCayJ67mbUWF6aknnteLg4sDKzqYeNYjyw8Jk6", |
11 | 12 |
"Issuer": "0x00.server" |
webapp/next.config.js | ||
---|---|---|
1 |
import env from '@beam-australia/react-env'; |
|
2 |
|
|
1 | 3 |
/** @type {import('next').NextConfig} */ |
2 | 4 |
const nextConfig = { |
3 | 5 |
reactStrictMode: true, |
4 |
basePath: '/law', |
|
5 |
assetPrefix: '/law', |
|
6 |
basePath: env('BASE_PATH') ?? '/law',
|
|
7 |
assetPrefix: env('BASE_PATH') ?? '/law',
|
|
6 | 8 |
}; |
7 | 9 |
|
8 | 10 |
module.exports = nextConfig; |
Také k dispozici: Unified diff
BasePath from env