Skip to content

Commit

Permalink
update env
Browse files Browse the repository at this point in the history
  • Loading branch information
logonoff committed Nov 3, 2024
1 parent 0ed4c38 commit adc902f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Contact = () => {
const handleSubmit = (e) => {
e.preventDefault();

emailjs.sendForm(process.env.REACT_APP_EMAILJS_SERVICE_ID, process.env.REACT_APP_EMAILJS_TEMPLATE_ID, e.target, process.env.REACT_APP_EMAILJS_PUBLIC_KEY)
emailjs.sendForm(import.meta.env.REACT_APP_EMAILJS_SERVICE_ID, import.meta.env.REACT_APP_EMAILJS_TEMPLATE_ID, e.target, import.meta.env.REACT_APP_EMAILJS_PUBLIC_KEY)
.then((result) => {
alert("Thanks for contacting us! We'll be in touch within 1-2 business days.");
}, (error) => {
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default defineConfig({
preview: {
port: 3000
},
envPrefix: 'REACT_APP_',
plugins: [react()],
})

0 comments on commit adc902f

Please sign in to comment.