Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions frontend/vite-xss-middleware.ts

This file was deleted.

3 changes: 1 addition & 2 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { viteXssMiddleware } from './vite-xss-middleware';
import dotenv from 'dotenv';

dotenv.config({ path: '.env' }); // load env vars from .env
export default defineConfig({
base: process.env.REACT_APP_VITE_BASE || '',
plugins: [react(), viteXssMiddleware()],
plugins: [react()],
preview: {
allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com'],
port: parseInt(process.env.PORT!),

Check warning on line 11 in frontend/vite.config.ts

View workflow job for this annotation

GitHub Actions / Check tsc, lint, and prettier on front end

Forbidden non-null assertion

Check warning on line 11 in frontend/vite.config.ts

View workflow job for this annotation

GitHub Actions / Check tsc, lint, and prettier on front end

Forbidden non-null assertion
host: true
},
define: {
'process.env': process.env
},
server: {
port: parseInt(process.env.PORT!),

Check warning on line 18 in frontend/vite.config.ts

View workflow job for this annotation

GitHub Actions / Check tsc, lint, and prettier on front end

Forbidden non-null assertion

Check warning on line 18 in frontend/vite.config.ts

View workflow job for this annotation

GitHub Actions / Check tsc, lint, and prettier on front end

Forbidden non-null assertion
open: false,
host: true,
allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com']
Expand Down
Loading