this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add config to disallow robots

+12
+2
README.md
··· 282 282 - API key for [GIPHY](https://developers.giphy.com/). See [API docs](https://developers.giphy.com/docs/api/). 283 283 - If provided, a setting will appear for users to enable the GIF picker in the composer. Disabled by default. 284 284 - This is not self-hosted. 285 + - `PHANPY_DISALLOW_ROBOTS` (optional, default: not set): 286 + - Set to any value (`true`, `1`, etc) to override the robots.txt file and disallow all web crawlers from indexing the site 285 287 286 288 ### Static site hosting 287 289
+10
vite.config.js
··· 22 22 PHANPY_CLIENT_NAME: CLIENT_NAME, 23 23 PHANPY_APP_ERROR_LOGGING: ERROR_LOGGING, 24 24 PHANPY_REFERRER_POLICY: REFERRER_POLICY, 25 + PHANPY_DISALLOW_ROBOTS: DISALLOW_ROBOTS, 25 26 PHANPY_DEV, 26 27 } = loadEnv('production', process.cwd(), allowedEnvPrefixes); 27 28 ··· 119 120 commitHash, 120 121 }, 121 122 }, 123 + ...(DISALLOW_ROBOTS 124 + ? [ 125 + { 126 + type: 'raw', 127 + output: './robots.txt', 128 + data: 'User-agent: *\nDisallow: /', 129 + }, 130 + ] 131 + : []), 122 132 ]), 123 133 VitePWA({ 124 134 manifest: {