updated questionnaire file

This commit is contained in:
merelendor 2024-08-29 11:28:54 +03:00
parent 57e11c2ed5
commit 7885fb8ec8
2 changed files with 43 additions and 21 deletions

View File

@ -1,34 +1,56 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
## ENV variables
```bash
npm run dev
# or
yarn dev
NEXT_PUBLIC_MAIN_SITE=https://domain
NEXT_PUBLIC_API_HOST=https://domain
NEXT_PUBLIC_SELF_API_HOST=https://lk.domain
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=key
NEXT_PUBLIC_UPLOAD_FILESIZE_LIMIT_MB=10
NEXT_PUBLIC_UPLOAD_SCAN_FILESIZE_LIMIT_MB=30
CRM_API_HOST=https://web-api:port
LOGS_API_HOST=https://logs-api:port
JWT_SECRET_CLIENT=key
JWT_SECRET_CRM=key
REDIS_URL=redis://:pass@hostname|ip:6379
REDIS_CLIENT_NAME="account"
DADATA_API_KEY=public key
DADATA_SECRET_KEY=key
NEXT_PUBLIC_YANDEX_METRIKA_ID=id
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=id
RELEASE=number
NEXT_PUBLIC_RELEASE=number
ENVIRONMENT=production|development
NEXT_PUBLIC_ENVIRONMENT=production|development
SMSC_LOGIN=login
SMSC_PASSWORD=pass
MAINTENANCE_MODE=0
LOG=0
CLIENT_SHOW_ERROR_MESSAGE=0
EMAIL_HOSTNAME=hostname
EMAIL_USERNAME=email
EMAIL_PASSWORD=pass
EMAIL_FROM=email from
SENTRY_DSN=url
NEXT_PUBLIC_SENTRY_DSN=url
NEXT_PUBLIC_AUTOFAQ_AI_ENABLED=1
NEXT_PUBLIC_AUTOFAQ_AI_SERVICE_ID=id
NEXT_PUBLIC_AUTOFAQ_AI_CHANNEL_ID=id
NEXT_PUBLIC_CONSOLE_LOG_SERVER=1
NEXT_PUBLIC_CONSOLE_LOG_CLIENT=0
QUESTIONNAIRE_TEMPLATE_FILENAME=filename in /lib folder
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

Binary file not shown.