Skip to content

Commit

Permalink
bugfix(app): updated env_example file, fixed survey question string (#…
Browse files Browse the repository at this point in the history
…479)

<!--- Please provide a general summary of your changes in the title
above -->

# Pull Request type

<!-- Please try to limit your pull request to one type; submit multiple
pull requests if needed. -->

Please check the type of change your PR introduces:

- [x] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no API changes)
- [ ] Build-related changes
- [x] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying, or
link to a relevant issue. -->

Issue Number: N/A

## What is the new behavior?
updated a survey string to use the correct question title for sexual
orientation instead of race/ethnicity
updated the env_example file to make setting up the project easier.

-
-
-

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this does introduce a breaking change, please describe the
impact and migration path for existing applications below. -->

## Other information

<!-- Any other information that is important to this PR, such as
screenshots of how the component looks before and after the change. -->
  • Loading branch information
trigal2012 authored Jan 21, 2025
2 parents 818419b + 065c960 commit 221fd2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@
# If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets.

# When adding additional env variables, the schema in /env/schema.mjs should be updated accordingly

# Environment
NODE_ENV=development

# Prisma
DATABASE_URL=postgres://localhost/glaad
# Database connection URL for Prisma
POSTGRES_PRISMA_URL=postgres://user:password@localhost:5432/postgres

# Database connection URL without connection pooling
POSTGRES_URL_NON_POOLING=postgres://user:password@localhost:5432/postgres

# Next Auth
# You can generate the secret via 'openssl rand -base64 32' on the command line
# More info: https://next-auth.js.org/configuration/options#secret

NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET= # generate with `openssl rand -base64 32`



4 changes: 2 additions & 2 deletions src/pages/survey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ const Survey = () => {
<TextInput {...form.getInputProps('q10other')} required />
)}
</Stack>
{/*Select how you identify your race/ethnicity */}
{/*Select how you identify your sexual orientation */}
<Stack spacing={0}>
<Checkbox.Group
{...form.getInputProps('q11')}
label={<Trans i18nKey='survey-form.q12' components={{ em: <em>.</em> }} />}
label={<Trans i18nKey='survey-form.q11' components={{ em: <em>.</em> }} />}
>
{Object.entries(t('survey-form.q11-opts', { returnObjects: true })).map(
([key, value], i) => (
Expand Down

0 comments on commit 221fd2d

Please sign in to comment.