diff --git a/netifly.toml b/netifly.toml deleted file mode 100644 index 4110053426602d67036ecf8ff9e7e36599340df4..0000000000000000000000000000000000000000 --- a/netifly.toml +++ /dev/null @@ -1,30 +0,0 @@ -[build] -publish = "public" -command = "hugo --gc --minify -b https://eclipsefdn-adopters.netlify.app" - -[context.production.environment] -HUGO_VERSION = "0.62.2" -HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" - -[context.split1] -command = "hugo --gc --minify --enableGitInfo" - -[context.split1.environment] -HUGO_VERSION = "0.62.2" -HUGO_ENV = "production" - -[context.deploy-preview] -command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" - -[context.deploy-preview.environment] -HUGO_VERSION = "0.62.2" - -[context.branch-deploy] -command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" - -[context.branch-deploy.environment] -HUGO_VERSION = "0.62.2" - -[context.next.environment] -HUGO_ENABLEGITINFO = "true" diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000000000000000000000000000000000..353ab6359f38d30a0268f090c60f00ee9bf5081a --- /dev/null +++ b/netlify.toml @@ -0,0 +1,30 @@ +[build] +publish = "public" +command = "npm run build_netlify && hugo --gc --minify -b https://eclipsefdn-adopters.netlify.app" + +[context.production.environment] +HUGO_VERSION = "0.76.5" +HUGO_ENV = "production" +HUGO_ENABLEGITINFO = "true" + +[context.split1] +command = "npm run build_netlify && hugo --gc --minify --enableGitInfo" + +[context.split1.environment] +HUGO_VERSION = "0.76.5" +HUGO_ENV = "production" + +[context.deploy-preview] +command = "npm run build_netlify && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] +HUGO_VERSION = "0.76.5" + +[context.branch-deploy] +command = "npm run build_netlify && hugo --gc --minify -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] +HUGO_VERSION = "0.76.5" + +[context.next.environment] +HUGO_ENABLEGITINFO = "true" \ No newline at end of file diff --git a/package.json b/package.json index a352db99d339dc93b88811e368a11e6a42f0d135..9e56618830ed03426b1a21d68dd9dfb5cf2d49f2 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,11 @@ }, "scripts": { "build": "npm run production && npm run minify_adopters && rm -rf src/main/resources/META-INF/resources/* && hugo -d src/main/resources/META-INF/resources/", - "build_netlify": "npm run production", + "build_netlify": "npm run production && npm run disallow_robots_txt", "minify_adopters": "mkdir -p target/config && ./node_modules/json-minify/index.js config/adopters.json > target/config/adopters.json", "dev": "NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "production": "NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + "production": "NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "disallow_robots_txt": "echo \"User-agent: *\r\nDisallow: /\" > layouts/robots.txt" }, "dependencies": { "chai": "^4.2.0",