diff --git a/client/src/config.js b/client/src/config.js new file mode 100644 index 0000000..512897b --- /dev/null +++ b/client/src/config.js @@ -0,0 +1,7 @@ +// Minimal client-side config used at runtime +// Keep this lightweight and avoid importing package.json in the browser build +export function getConfig() { + return { + version: '1.0.0' + }; +} diff --git a/client/src/index.js b/client/src/index.js index 7e031dc..0a8dba4 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -2,6 +2,12 @@ import React from 'react'; import { createRoot } from 'react-dom/client'; import App from './App'; import './styles.css'; +import { getConfig } from './config'; + +// App configuration and initialization +const APP_NAME = 'Tic Tac Toe'; +const config = getConfig(); +console.log(`Starting ${APP_NAME} v${config.version}...`); const root = createRoot(document.getElementById('root')); root.render(); \ No newline at end of file