diff --git a/client/web/assets/robots.txt b/client/web/assets/robots.txt new file mode 100644 index 00000000000..a6377b86262 --- /dev/null +++ b/client/web/assets/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /invite/ diff --git a/client/web/build/webpack.config.ts b/client/web/build/webpack.config.ts index c6b69e31600..82c29ebad16 100644 --- a/client/web/build/webpack.config.ts +++ b/client/web/build/webpack.config.ts @@ -80,6 +80,10 @@ const plugins: Configuration['plugins'] = [ from: path.resolve(ROOT_PATH, './assets/pwa.webmanifest'), to: 'pwa.webmanifest', }, + { + from: path.resolve(ROOT_PATH, './assets/robots.txt'), + to: 'robots.txt', + }, { from: path.resolve(ROOT_PATH, './assets/_redirects'), to: './', // for netlify