feat: add express server to serve React build and update blockchain utility for token approval

This commit is contained in:
2026-01-05 13:55:37 +09:00
parent 108b78bf64
commit 729d2a7fd3
16 changed files with 114 additions and 12 deletions

12
server.js Normal file
View File

@@ -0,0 +1,12 @@
const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'build')));
app.use((req, res) => {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});
app.listen(3000, () => {
console.log('React build serving on 3000');
});