Files
supabase/apps/www/lib/remotePatterns.js
Ivan Vasilov 21d7ac0518 chore: Remove CMS code from the www app (#42648)
This PR removes all CMS code from the `www` app. This includes fetching
of blog posts, API routes for proxying blog posts and types.

All functionality should remain the same (and the number of blog posts
should be the same).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Removed CMS integration, APIs, preview/draft/revalidate endpoints,
related env vars and dependency; switched to static markdown-only blog
pipeline.
* **Refactor**
* Simplified image and author resolution, tightened component props to
static post shapes, and migrated imports to path aliases.
* **Documentation**
  * Deleted CMS integration docs and rich-text conversion helpers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-11 11:40:57 +01:00

118 lines
2.0 KiB
JavaScript

module.exports = [
{
protocol: 'https',
hostname: 'api.producthunt.com',
port: '',
pathname: '**',
},
{
protocol: 'http',
hostname: 'localhost',
port: '3030',
pathname: '**',
},
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
pathname: '/u/*',
},
{
protocol: 'https',
hostname: 'ca.slack-edge.com',
port: '',
pathname: '/*',
},
{
protocol: 'https',
hostname: 'colab.research.google.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'github.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 's3-us-west-2.amazonaws.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'img.youtube.com',
port: '',
pathname: '/vi/*',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/photo-*',
},
{
protocol: 'https',
hostname: 'vercel.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'obuldanrptloktxcffvn.supabase.co',
port: '',
pathname: '**',
},
{
protocol: 'http',
hostname: '127.0.0.1',
port: '54321',
pathname: '**',
},
{
protocol: 'https',
hostname: 'xguihxuzqibwxjnimxev.supabase.co',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'pbs.twimg.com',
port: '',
pathname: '/profile_images/**',
},
{
protocol: 'https',
hostname: 'res.cloudinary.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'supabase.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'user-images.githubusercontent.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'media.licdn.com',
port: '',
pathname: '/dms/image/**',
},
// OG Edge Function
{
protocol: 'https',
hostname: 'zhfonblqamxferhoguzj.supabase.co',
port: '',
pathname: '/functions/v1/generate-og',
},
]