Why does it throw the error "'process' is not defined."?

Hoàng Nguyễn - Nov 6 - - Dev Community

vite.config.js

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: process.env.VITE_APP_PORT || 3000, // Cổng cho server phát triển
},
build: {
outDir: 'dist', // Thư mục xuất ra sau khi build
},
});

.
Terabox Video Player