diff --git a/apps/formbricks-com/next-sitemap.config.js b/apps/formbricks-com/next-sitemap.config.js new file mode 100644 index 0000000000..e1eeb319c9 --- /dev/null +++ b/apps/formbricks-com/next-sitemap.config.js @@ -0,0 +1,5 @@ +/** @type {import('next-sitemap').IConfig} */ +module.exports = { + siteUrl: process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "https://formbricks.com", + generateRobotsTxt: true, // (optional) +}; diff --git a/apps/formbricks-com/package.json b/apps/formbricks-com/package.json index 159f2e006f..e6f482cebb 100644 --- a/apps/formbricks-com/package.json +++ b/apps/formbricks-com/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "next dev", "build": "next build", + "postbuild": "next-sitemap", "start": "next start", "lint": "next lint" }, @@ -15,10 +16,12 @@ "@mdx-js/loader": "^2.1.5", "@mdx-js/react": "^2.1.5", "@next/mdx": "^13.0.0", + "add": "^2.0.6", "clsx": "^1.2.1", "lottie-web": "^5.9.6", "next": "13.0.0", "next-plausible": "^3.6.4", + "next-sitemap": "^3.1.31", "prism-react-renderer": "^1.3.5", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/apps/formbricks-com/public/robots.txt b/apps/formbricks-com/public/robots.txt new file mode 100644 index 0000000000..71a3a790ab --- /dev/null +++ b/apps/formbricks-com/public/robots.txt @@ -0,0 +1,9 @@ +# * +User-agent: * +Allow: / + +# Host +Host: https://formbricks.com + +# Sitemaps +Sitemap: https://formbricks.com/sitemap.xml diff --git a/apps/formbricks-com/public/sitemap-0.xml b/apps/formbricks-com/public/sitemap-0.xml new file mode 100644 index 0000000000..39d10b63c4 --- /dev/null +++ b/apps/formbricks-com/public/sitemap-0.xml @@ -0,0 +1,30 @@ + + +https://formbricks.com2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/blog2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/blog/open-source-forms-will-save-the-world2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/blog/snoopforms-becomes-formbricks2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/blog/why-open-source-no-code-is-the-future-of-enterprise-gov-software2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/community2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/core-api2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/data-insights/form-hq2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/data-pipelines/core-api2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/data-pipelines/email-notifications2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/data-pipelines/webhooks2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/form-creation/react-form-builder2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/introduction/how-to-achieve-this2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/introduction/quick-start2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/introduction/what-is-formbricks2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/docs/introduction/why-formbricks2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/email2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/form-hq2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/get-started2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/imprint2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/privacy2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/react-form-library2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/visual-builder2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/vs-formspree2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/vs-react-hook-form2022-11-14T10:08:08.816Zdaily0.7 +https://formbricks.com/webhooks2022-11-14T10:08:08.816Zdaily0.7 + \ No newline at end of file diff --git a/apps/formbricks-com/public/sitemap.xml b/apps/formbricks-com/public/sitemap.xml new file mode 100644 index 0000000000..0ad1d092b5 --- /dev/null +++ b/apps/formbricks-com/public/sitemap.xml @@ -0,0 +1,4 @@ + + +https://formbricks.com/sitemap-0.xml + \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d67a882406..87e91b73c0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,7 @@ importers: '@types/node': 18.11.6 '@types/react': 18.0.23 '@types/react-dom': 18.0.7 + add: ^2.0.6 autoprefixer: ^10.4.12 clsx: ^1.2.1 eslint: 8.26.0 @@ -33,6 +34,7 @@ importers: lottie-web: ^5.9.6 next: 13.0.0 next-plausible: ^3.6.4 + next-sitemap: ^3.1.31 postcss: ^8.4.18 prism-react-renderer: ^1.3.5 react: 18.2.0 @@ -48,10 +50,12 @@ importers: '@mdx-js/loader': 2.1.5_webpack@5.74.0 '@mdx-js/react': 2.1.5_react@18.2.0 '@next/mdx': 13.0.1_wuv4qx5dshjptmdbtsqqkih5iu + add: 2.0.6 clsx: 1.2.1 lottie-web: 5.9.6 next: 13.0.0_biqbaboplfbrettd7655fr4n2y next-plausible: 3.6.4_r5sq4deac3rmm2d5onhwvomqve + next-sitemap: 3.1.31_qcnuwogvzn5dnsttittida2hji prism-react-renderer: 1.3.5_react@18.2.0 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -493,6 +497,10 @@ packages: prettier: 2.7.1 dev: true + /@corex/deepmerge/4.0.29: + resolution: {integrity: sha512-q/yVUnqckA8Do+EvAfpy7RLdumnBy9ZsducMUtZTvpdbJC7azEf1hGtnYYxm0QfphYxjwggv6XtH64prvS1W+A==} + dev: false + /@docsearch/css/3.3.0: resolution: {integrity: sha512-rODCdDtGyudLj+Va8b6w6Y85KE85bXRsps/R4Yjwt5vueXKXZQKYw0aA9knxLBT6a/bI/GMrAcmCR75KYOM6hg==} dev: false @@ -1341,6 +1349,10 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + /add/2.0.6: + resolution: {integrity: sha512-j5QzrmsokwWWp6kUcJQySpbG+xfOBqqKnup3OIk1pz+kB/80SLorZ9V8zHFLO92Lcd+hbvq8bT+zOGoPkmBV0Q==} + dev: false + /ajv-keywords/3.5.2_ajv@6.12.6: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} peerDependencies: @@ -4114,6 +4126,20 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false + /next-sitemap/3.1.31_qcnuwogvzn5dnsttittida2hji: + resolution: {integrity: sha512-GGp+EKSNYy3nlfuZtyI2DAsUrTSA6u35glVQVxpiPRnPHINDozsxSbFzHgFNqZ95hBBdkw5anDJYVnRYGIWvNw==} + engines: {node: '>=14.18'} + hasBin: true + peerDependencies: + '@next/env': '*' + next: '*' + dependencies: + '@corex/deepmerge': 4.0.29 + '@next/env': 13.0.0 + minimist: 1.2.6 + next: 13.0.0_biqbaboplfbrettd7655fr4n2y + dev: false + /next/13.0.0_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-puH1WGM6rGeFOoFdXXYfUxN9Sgi4LMytCV5HkQJvVUOhHfC1DoVqOfvzaEteyp6P04IW+gbtK2Q9pInVSrltPA==} engines: {node: '>=14.6.0'}