docs-plus / docs.plus

A real-time community collaboration platform
http://docs.plus
MIT License
67 stars 7 forks source link

/packages/supabase/.env requires Google credentials? #141

Open claudiorrrr opened 3 months ago

claudiorrrr commented 3 months ago

GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID GOOGLE_SECRET=YOUR_GOOGLE_SECRET

HMarzban commented 3 months ago

As planned, users can run the project in editor-only mode! This means that if you are not interested in or do not need the chat or auth features, you can leave these .env variables blank:

  1. packages/webapp/.env
    
    # Replace this with your Tiptap Pro token if you want to install Tiptap Pro extensions.
    # For more information, visit: https://tiptap.dev/docs/editor/extensions/overview?filter=pro
    TIPTAP_PRO_TOKEN=YOUR_TIPTAP_PRO_TOKEN

Replace this with your Supabase anon key.

Leave it empty if you don't want to use Auth and Realtime features (like chat).

NEXT_PUBLIC_SUPABASE_ANON_KEY= #YOUR_SUPABASE_ANON_KEY NEXT_PUBLIC_SUPABASE_URL= #http://localhost:54321 NEXT_PUBLIC_SUPABASE_WS_URL= #ws://localhost:54321 NEXT_PUBLIC_AUTH_REDIRECT_TO= #http://localhost:3000/auth/callback

2. `packages/hocuspocus.server/.env`

```env
# Supabase Configuration: Required for Auth and Realtime features (like chat).
# If you're only using DocsPlus for the editor, you can ignore this.
SUPABASE_ANON_KEY=your-supabase-anon-key
SUPABASE_URL=your-supabase-url

# if you do not want to use the Multimedia extentsion you can ignore these too
# Configuration for DigitalOcean Spaces, AWS S3, or any S3-compatible storage services
DO_STORAGE_ENDPOINT=your-endpoint
DO_STORAGE_REGION=your-region
DO_STORAGE_ACCESS_KEY_ID=your-access-key
DO_STORAGE_SECRET_ACCESS_KEY=your-secret-access-key
DO_STORAGE_BUCKET=your-bucket
DO_STORAGE_MAX_FILE_SIZE=your-max-file-size
  1. packages/supabase/.env
# Google Social Login
# For more information, visit: https://supabase.com/docs/guides/auth/social-login
# Check the config.toml file in the root of the project for additional social login parameters.
GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
GOOGLE_SECRET=YOUR_GOOGLE_SECRET
HMarzban commented 3 months ago

@claudiorrrr thanks! If you're more interested in docsplus, I'd love to have a chat on Slack.