Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info
| import { defineConfig } from 'vite'; | |
| import react from '@vitejs/plugin-react'; | |
| // https://vitejs.dev/config/ | |
| export default defineConfig({ | |
| plugins: [react()], | |
| optimizeDeps: { | |
| exclude: ['lucide-react'], | |
| }, | |
| build: { |
Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info
| import { auth } from "@clerk/nextjs"; | |
| import { NextResponse } from "next/server"; | |
| // Old way (v3) | |
| // import { Configuration, OpenAIApi } from "openai" | |
| // New way (v4) | |
| import OpenAI from "openai" | |
| const openai = new OpenAI({ |