17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
import { createApp } from './app';
|
|
import type { ProductionInputs } from './content/types';
|
|
|
|
declare global {
|
|
interface Window {
|
|
__PORTFOLIO_INPUTS__?: Readonly<ProductionInputs>;
|
|
}
|
|
}
|
|
|
|
const inputs = window.__PORTFOLIO_INPUTS__;
|
|
|
|
if (inputs === undefined) {
|
|
throw new Error('The serialized portfolio input snapshot is unavailable.');
|
|
}
|
|
|
|
createApp(inputs).mount('#app');
|