@degreesign/webapp 1.6.9 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/src/web.js +4 -6
  2. package/package.json +1 -1
package/dist/src/web.js CHANGED
@@ -143,20 +143,17 @@ Sitemap: https://${websiteDomain}/sitemap.xml`, getServiceWorkerContent = () =>
143
143
  Header set Strict-Transport-Security "max-age=31536000; includeSubDomains"
144
144
  </IfModule>
145
145
 
146
- # disable indexing
146
+ # Disable Indexing
147
147
  Options -Indexes
148
148
 
149
+ # Always use HTTPS
149
150
  <IfModule mod_rewrite.c>
150
151
  RewriteEngine On
151
152
  RewriteCond %{HTTPS} off
152
153
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
153
154
  </IfModule>
154
155
 
155
- # Errors
156
- ErrorDocument 404 /404
157
- ErrorDocument 403 /404
158
-
159
- # Add content type
156
+ # Files and Directories
160
157
  `;
161
158
  for (let i = 0; i < pagesList.length; i++) {
162
159
  const pageData = pagesList[i], pageURI = pageData.uri, isHome = pageHome == pageURI;
@@ -202,6 +199,7 @@ ErrorDocument 403 /404
202
199
  }
203
200
  ;
204
201
  htaccessFile += htaccessCustom;
202
+ htaccessFile += `\n\n# Errors\nErrorDocument 404 /404\nErrorDocument 403 /404`;
205
203
  (0, utils_1.writeData)(`./${productionDir}/robots.txt`, robots);
206
204
  (0, utils_1.writeData)(`./${productionDir}/.htaccess`, htaccessFile);
207
205
  (0, utils_1.writeData)(`./${productionDir}/app.json`, JSON.stringify(appManifest));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "MIT",
3
3
  "name": "@degreesign/webapp",
4
- "version": "1.6.9",
4
+ "version": "1.7.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",