From c6355ec1d60594e843f0bc44c37fa55fb69d735d Mon Sep 17 00:00:00 2001 From: Godwin Kimani Date: Fri, 22 Dec 2023 15:48:12 +0300 Subject: [PATCH] build(deploy): change netlify configuration for static export --- netlify.toml | 7 ++++--- public/robots.txt | 10 ++++++++-- public/sitemap-0.xml | 40 ++++++++++++++++++++++++++++++++++++++++ public/sitemap.xml | 4 ++++ 4 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 public/sitemap-0.xml create mode 100644 public/sitemap.xml diff --git a/netlify.toml b/netlify.toml index c2cdd37..001bd1f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,6 @@ +[[plugins]] +package = "@netlify/plugin-nextjs" + [build] command = "npm run build" -publish = ".next" -[[plugins]] -package = "@netlify/plugin-nextjs" \ No newline at end of file +publish = ".next" \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt index e9e57dc..f428f76 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,3 +1,9 @@ -# https://www.robotstxt.org/robotstxt.html +# * User-agent: * -Disallow: +Allow: / + +# Host +Host: http://localhost:3001 + +# Sitemaps +Sitemap: http://localhost:3001/sitemap.xml diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml new file mode 100644 index 0000000..0301899 --- /dev/null +++ b/public/sitemap-0.xml @@ -0,0 +1,40 @@ + + +http://localhost:3001/en/dashboard2023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard2023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard2023-12-22T12:46:51.505Zdaily0.7 +http://localhost:30012023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en2023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr2023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es2023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/12023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/22023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/32023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/42023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/52023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/62023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/72023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/82023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/92023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/en/dashboard/users/102023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/12023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/22023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/32023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/42023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/52023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/62023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/72023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/82023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/92023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/fr/dashboard/users/102023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/12023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/22023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/32023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/42023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/52023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/62023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/72023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/82023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/92023-12-22T12:46:51.505Zdaily0.7 +http://localhost:3001/es/dashboard/users/102023-12-22T12:46:51.505Zdaily0.7 + \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..1a60042 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,4 @@ + + +http://localhost:3001/sitemap-0.xml + \ No newline at end of file