Skip to content

Commit

Permalink
Merge branch 'main' of ssh://github.com/ITPNYU/Booking-Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Mar 27, 2024
2 parents e63619c + decf70a commit aedd639
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions media_commons_booking_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"open": "clasp open --addon",
"setup:https": "mkdirp certs && mkcert -key-file ./certs/key.pem -cert-file ./certs/cert.pem localhost 127.0.0.1",
"build:local": "cross-env NODE_ENV=development CALENDAR_ENV=development webpack",
"build:dev": "cross-env NODE_ENV=production CALENDAR_ENV=development webpack",
"build:staging": "cross-env NODE_ENV=production CALENDAR_ENV=development webpack",
"build": "cross-env NODE_ENV=production CALENDAR_ENV=production webpack",
"build:dev": "cross-env NODE_ENV=production CALENDAR_ENV=development webpack --mode=production",
"build:staging": "cross-env NODE_ENV=production CALENDAR_ENV=development webpack --mode=production",
"build": "cross-env NODE_ENV=production CALENDAR_ENV=production webpack --mode=production",
"deploy:local": "rimraf dist && npm run build:local && npx clasp push",
"deploy:dev": "rimraf dist && npm run build:dev && npx clasp push",
"deploy:staging": "rimraf dist && npm run build:staging && npx clasp push",
Expand Down
4 changes: 0 additions & 4 deletions media_commons_booking_app/src/client/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import { RouterProvider, createMemoryRouter } from 'react-router-dom';

import AdminPage from './routes/admin/adminPage';
Expand All @@ -14,8 +12,6 @@ import UserRolePage from './routes/booking/formPages/UserRolePage';
import UserSectionPage from './routes/booking/formPages/UserSectionPage';
import { createRoot } from 'react-dom/client';

console.log('TEST IN INDEX.JS');

const router = createMemoryRouter([
{
path: '/',
Expand Down
7 changes: 7 additions & 0 deletions media_commons_booking_app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ const DynamicCdnWebpackPluginConfig = {
if (!isProd && packageName === 'react') {
return null;
}
if (
packageName === 'react-router-dom' ||
packageName === 'react-router' ||
packageName === '@remix-run/router'
) {
return null;
}

// define custom CDN configuration for new packages
// "name" should match the package being imported
Expand Down

0 comments on commit aedd639

Please sign in to comment.