Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS en localhost #23

Merged
merged 3 commits into from
Jun 28, 2024
Merged

HTTPS en localhost #23

merged 3 commits into from
Jun 28, 2024

Conversation

Striffly
Copy link
Collaborator

Utilise notamment pour tester en local le bouton de partage

En effet pour avoir ce bouton il faut que plusieurs conditions soient respectés :

  • que je soit en HTTPS, ou avec une adresse en localhost
  • que le navigateur supporte la fonctionnalité (exit Linux 😢 )

Bref dans mon cas c'est possible de tester cela que sur Android via le réseau local (donc adresse en 192.xxx). Donc obligé d'avoir le HTTPS

@arnaudsm
Copy link
Owner

Linux est compatible, çà dépend du browser 😛 C'est firefox qui n'est pas compatible notamment

Copy link

Deploying votefinder-fr with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a0160f
Status: ✅  Deploy successful!
Preview URL: https://2808319b.votefinder-fr.pages.dev
Branch Preview URL: https://features-https-localhost.votefinder-fr.pages.dev

View logs


// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr({ include: "**/*.svg" })],
plugins: [react(), mkcert(), svgr({ include: "**/*.svg" })],
Copy link
Owner

@arnaudsm arnaudsm Jun 26, 2024

Choose a reason for hiding this comment

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

Tu peux le rendre optionnel derrière une variable d'env (que tu peux rajouter dans une commande makefile) ? Ce package demande les droits administrateurs, ce qui est un no-go pour beaucoup de gens

@Striffly
Copy link
Collaborator Author

Striffly commented Jun 26, 2024

Linux est compatible, çà dépend du browser 😛 C'est firefox qui n'est pas compatible notamment

Sous chromium + linux impossible de faire fonctionner dans mon cas : https://caniuse.com/web-share
T'utilises quoi ?

@Striffly Striffly merged commit 532f6d5 into main Jun 28, 2024
1 check passed
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