Infomaniak Paste is a 100% secure solution for transferring your encrypted messages to all your contacts.
The data are encrypted and decrypted directly in your Internet browser via the 256-bit AES protocol using the Galois Counter mode.
See ./.env.development for the environment variables.
nvm use 19
npm inpm startnpm run buildSince this project depends on private Infomaniak registries, a mocking strategy is used for local development.
You can toggle between the real dependency and the local mock using the following commands:
# Use local mock (updates package-lock.json to point to local files)
npm run mock:on
# Surgical Reset (restores the registry version while keeping other changes like new libraries)
npm run mock:offTo avoid CORS issues in development, the project uses a Vite proxy. The configuration is explicit in .env.development:
VITE_WEB_COMPONENT_API_ENDPOINT: Empty ("") to force the browser to use relative paths.VITE_WEB_COMPONENT_API_ENDPOINT_PROXY: The actual target URL for the proxy.
nvm use 19
npm i
npm startfolder kubernetes
folder docker
see cypress folder
- linter
- dependency check
- cypress
- docker image (nginx)
- docker image check
there is a precommit hook based on eslint check
localhost don't work because of https
this plugin automatically enables HTTPS for Vite development servers by generating self-signed SSL certificates.
npm install -D @vitejs/plugin-basic-ssl\nin vite.config.ts
add BasicSsl :
import basicSsl from '@vitejs/plugin-basic-ssl'defineConfig plugin :
plugins: [
react(),
basicSsl({
name: 'test',
domains: ['*.custom.com'],
certDir: '/Users/.../.devServer/cert'
})
],