- Added DOKUMENTASI-FILTER-PER-SITE.md (site isolation docs) - Fixed start-with-env.js to force-load .env.production - Fixed MONGODB_URI hostname from mongodb-netify to mongodb.prod.proit.id - Updated .gitignore to exclude sensitive scripts and credential files - Minor UI and labeling improvements
16 lines
492 B
JavaScript
16 lines
492 B
JavaScript
const path = require('path');
|
|
require('dotenv').config({ path: './.env.local' });
|
|
const { netifyFetch } = require('../proxy/netifyClientCore');
|
|
|
|
async function main() {
|
|
console.log('Testing netifyFetch...');
|
|
console.log('API Key:', process.env.NETIFY_API_KEY);
|
|
|
|
const start = Date.now();
|
|
const data = await netifyFetch('/lookup/applications', { settings_limit: 5 });
|
|
console.log('Done in:', Date.now() - start, 'ms');
|
|
console.log('Data:', data);
|
|
}
|
|
|
|
main().catch(console.error);
|