You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our default database is MySQL 8 (mysql2). If you want to use other database, please refer to Strapi Database Documentation
and install the required dependencies
Generate secrets with openssl for APP_KEYS (4 sets concat with ",") ,API_TOKEN_SALT, ADMIN_JWT_SECRET and JWT_SECRET
Go to "Settings" > "Global Settings" > "API Tokens"
Click "Create new API Token"
Fill in the form, select "Unlimited" for Token duration, "Read-only" for Token Type (so it auto-check all find/findOne on all Content-Type) and then Select "Custom". Under "Navigation", select all. Click Save
Edit the token and select "Custom"
Copy the generated token and save it to apps/web/.env.local file as STRAPI_API_TOKEN
STRAPI_API_TOKEN=<generated token>
Import default Strapi Configuration
cd apps/strapi
pnpm cs import
Setup Webhooks on Strapi to trigger NextJS revalidate
Generate a secret with openssl for x-internal-api-secret (INTERNAL_API_SECRET)
Login to Strapi Admin Dashboard
Go to "Settings" > "Global Settings" > "Webhooks"
Click "Create new Webhook"
Fill in the fill
Name:revalidateTag
Url:http://localhost:3000/api/revalidate
Under Events: Check all on "Entry"
Under Header: "x-internal-api-secret: <your secret>"
Click "Save"
Start DEV server
# start both Strapi and NextJS
pnpm dev
# start only Strapi
pnpm dev --filter strapi
# start only NextJS
pnpm dev --filter web
Semantics Search and AI Chatbot with AWS Bedrock / OpenAI and Typesense (POC)