Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalverson committed Oct 2, 2024
1 parent c29cbb9 commit a476bc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/colorPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ColorsResponse } from "../interfaces";
const BASE_URL = import.meta.env.VITE_BASE_URL;

const ColorPicker: React.FC<Props> = ({filamentType}) => {
console.log('env: ', import.meta.env);
const url = new URL(`${BASE_URL}/colors`);

const fetchColors = async (filamentType: string) => {
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
define: {
'process.env': process.env
}
})

0 comments on commit a476bc8

Please sign in to comment.