diff options
| -rw-r--r-- | exampleSite/config/_default/params.yaml | 4 | ||||
| -rw-r--r-- | netlify-production.js | 15 | ||||
| -rw-r--r-- | netlify.toml | 3 | ||||
| -rw-r--r-- | package-lock.json | 24 | ||||
| -rw-r--r-- | package.json | 5 |
5 files changed, 5 insertions, 46 deletions
diff --git a/exampleSite/config/_default/params.yaml b/exampleSite/config/_default/params.yaml index 0eda434..ca44935 100644 --- a/exampleSite/config/_default/params.yaml +++ b/exampleSite/config/_default/params.yaml @@ -144,9 +144,9 @@ comments: privacy: googleTagManager: - disable: true + disable: false respectDoNotTrack: true services: googleTagManager: - id: '' + id: 'GTM-W8D5W642' diff --git a/netlify-production.js b/netlify-production.js deleted file mode 100644 index 18ae1d2..0000000 --- a/netlify-production.js +++ /dev/null @@ -1,15 +0,0 @@ -const fs = require('fs'); -const yaml = require('yaml'); - -const filePath = 'exampleSite/config/_default/params.yaml'; -const file = fs.readFileSync(filePath, 'utf8'); -const config = yaml.parse(file); - -config.privacy.googleTagManager.disable = false; -config.services.googleTagManager.id = 'GTM-W8D5W642'; - -const newYaml = yaml.stringify(config); - -fs.writeFileSync(filePath, newYaml, 'utf8'); - -console.log('Updated config.yaml successfully!'); diff --git a/netlify.toml b/netlify.toml index 14fc339..6e37d47 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,7 +7,6 @@ # a base has not been set. This sample publishes the directory # located at the absolute path "root/project/build-output" publish = 'public' - command = 'npm install' [build.environment] HUGO_VERSION = '0.121.0' @@ -19,7 +18,7 @@ # here, but we recommend using the Netlify UI for sensitive # values to keep them out of your source repository. [context.production] - command = 'npm run netlify-production; hugo --source=exampleSite --baseURL ${URL} --destination ../public --minify' + command = 'hugo --source=exampleSite --baseURL ${URL} --destination ../public --minify' [context.production.environment] HUGO_ENV = 'production' diff --git a/package-lock.json b/package-lock.json index df6cf5c..9a46a94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,7 @@ "@playwright/test": "^1.47.2", "@types/node": "^22.7.3", "eslint": "^9.11.1", - "fs": "^0.0.1-security", - "jsdom": "^25.0.1", - "yaml": "^2.5.1" + "jsdom": "^25.0.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -776,13 +774,6 @@ "node": ">= 6" } }, - "node_modules/fs": { - "version": "0.0.1-security", - "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", - "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==", - "dev": true, - "license": "ISC" - }, "node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", @@ -1626,19 +1617,6 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true }, - "node_modules/yaml": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", - "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", - "dev": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 34dd342..d7785a4 100644 --- a/package.json +++ b/package.json @@ -23,15 +23,12 @@ "server": "HUGO_RESOURCEDIR='../resources' HUGO_ENV=development hugo server --logLevel info --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender", "test": "playwright test", "lint": "eslint static/js/* assets/js/* tests/*.spec.js eslint.config.js playwright.config.js netlify-preview.js", - "netlify-production": "node netlify-production.js", "netlify-preview": "node netlify-preview.js" }, "devDependencies": { "@playwright/test": "^1.47.2", "@types/node": "^22.7.3", "eslint": "^9.11.1", - "fs": "^0.0.1-security", - "jsdom": "^25.0.1", - "yaml": "^2.5.1" + "jsdom": "^25.0.1" } } |
