Skip to content

🥷 Move contacts to dotenv#1208

Open
BmnQuentin wants to merge 3 commits intodevfrom
move-contacts-to-dotenv
Open

🥷 Move contacts to dotenv#1208
BmnQuentin wants to merge 3 commits intodevfrom
move-contacts-to-dotenv

Conversation

@BmnQuentin
Copy link
Copy Markdown
Collaborator

No description provided.

@BmnQuentin BmnQuentin marked this pull request as ready for review April 28, 2026 09:10

export default function ModificationControleForm() {
const { structure } = useStructureContext();
const BHASILE_CONTACT_EMAIL =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On ne pourrait pas laisser ça dans constants ? Histoire d'éviter de le répeter partout

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quitte à changer le tel (par sécurité mais aussi pour que ce soit simple à modifier pour un non dev) je m disais que c'était bien de grouper avec le mail... Ca se discute en vrai

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non, c'est bien de mettre tel et email dans les variables d'env. Par contre on peut mettre

const BHASILE_CONTACT_EMAIL = process.env.BHASILE_CONTACT_EMAIL || "";
const BHASILE_PHONE_NUMBERS =
    process.env.NEXT_PUBLIC_BHASILE_PHONE_NUMBERS || "";

dans constants.ts, comme ça tu n'as pas à le réécrire dans chaque composant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants