File tree Expand file tree Collapse file tree 3 files changed +29
-6
lines changed
personalization-webcomponents Expand file tree Collapse file tree 3 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 1
- location /src/ {
1
+ location / {
2
+ add_header 'Access-Control-Allow-Origin' $allow_origin;
3
+ add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
4
+
5
+ location /src/ {
2
6
expires 365d;
3
- add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
4
- add_header Cache-Control 'public, no-transform';
5
- }
7
+ add_header 'Access-Control-Allow-Origin' $allow_origin;
8
+ add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
9
+ add_header Cache-Control "public, no-transform";
10
+ }
6
11
7
- location ~ ^/loader-.*\.js$ {
12
+ location ~ ^/loader-.*\.js$ {
13
+ add_header 'Access-Control-Allow-Origin' $allow_origin;
8
14
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
9
15
add_header Cache-Control 'no-cache';
10
- }
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ map $http_origin $allow_origin {
2
+ # Obviously for muenchen.de
3
+ ~^https?://(.*\.)?muenchen.de(:\d+)?$ $http_origin;
4
+
5
+ # Test-Site for Magnolia is not under muenchen.de-Domain
6
+ ~^https?://(.*\.)?swm.de(:\d+)?$ $http_origin;
7
+
8
+ # And the Header of muenchen.de has it's testpage on this domain...
9
+ ~^https?://(.*\.)?platformsh.site(:\d+)?$ $http_origin;
10
+
11
+ # If we need to debug something from our local machines.
12
+ ~^https?://(.*\.)?localhost(:\d+)?$ $http_origin;
13
+
14
+ default "";
15
+ }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default defineConfig(({ mode }) => {
33
33
} ,
34
34
build : {
35
35
manifest : true , // required for post build logic in 'processes' folder
36
+ minify : true ,
36
37
rollupOptions : {
37
38
input : {
38
39
"checklist-detail" : "./src/checklist-detail-webcomponent.ts" ,
You can’t perform that action at this time.
0 commit comments