mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
30 lines
693 B
TypeScript
30 lines
693 B
TypeScript
export const asyncSleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay));
|
|
export const dateOptions: DateTimeFormatOptions = {
|
|
year: 'numeric',
|
|
month: 'short',
|
|
day: '2-digit',
|
|
hour: 'numeric',
|
|
minute: 'numeric',
|
|
second: 'numeric',
|
|
hour12: false
|
|
};
|
|
|
|
export const staticDeployments = [
|
|
'react',
|
|
'vuejs',
|
|
'static',
|
|
'svelte',
|
|
'gatsby',
|
|
'php',
|
|
'astro',
|
|
'eleventy'
|
|
];
|
|
export const notNodeDeployments = ['php', 'docker', 'rust'];
|
|
|
|
export function getDomain(domain) {
|
|
return domain?.replace('https://', '').replace('http://', '');
|
|
}
|
|
export function generateRemoteEngine(destination) {
|
|
return `ssh://${destination.user}@${destination.ipAddress}:${destination.port}`;
|
|
}
|