This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: micro | |
--- | |
kind: PersistentVolume | |
apiVersion: v1 | |
metadata: | |
name: store-pv | |
namespace: micro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$id": "https://example.com/calendar.schema.json", | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"description": "A representation of an event", | |
"type": "object", | |
"required": [ "dtstart", "summary" ], | |
"properties": { | |
"dtstart": { | |
"type": "string", | |
"description": "Event starting time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"log" | |
_ "github.com/jmrobles/h2go" | |
) | |
func main() { | |
conn, err := sql.Open("h2", "h2://sa@localhost/testdb?mem=true") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/node_modules/liferay-npm-build-support/lib/scripts/build/index.js | |
+++ b/node_modules/liferay-npm-build-support/lib/scripts/build/index.js | |
@@ -29,7 +29,13 @@ | |
function default_1() { | |
switch (project_1.default.probe.type) { | |
case probe_1.ProjectType.ANGULAR_CLI: | |
- buildWith('build', ['--prod=true']); | |
+ let conf = "--prod=true" | |
+ process.argv.forEach(op => { | |
+ if (op.startsWith("-c=")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- buildWith('build', ['--prod=true']); | |
+ let conf = "--prod=true" | |
+ process.argv.forEach(op => { | |
+ if (op.startsWith("-c=")) { | |
+ conf = op | |
+ } | |
+ }); | |
+ buildWith('build', [conf]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PROXY_CONFIG = { | |
"/api": { | |
"target": "http://my-backend.com", | |
"changeOrigin": true, | |
"secure": false, | |
"logLevel": "debug", | |
"onProxyReq": function(pr, req, res) { | |
pr.removeHeader('Origin'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PROXY_CONFIG = { | |
"/api": { | |
"target": "http://my-backend.com", | |
"changeOrigin": true, | |
"secure": false, | |
"logLevel": "debug", | |
"pathRewrite": { | |
"^/api": "/api-dev" | |
}, | |
"cookiePathRewrite": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PROXY_CONFIG = { | |
"/api": { | |
"target": "http://my-backend.com", | |
"changeOrigin": true, | |
"secure": false, | |
"logLevel": "debug", | |
"onProxyRes": function(pr, req, res) { | |
if (pr.headers['set-cookie']) { | |
const cookies = pr.headers['set-cookie'].map(cookie => | |
cookie.replace(/;(\ )*secure/gi, '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PROXY_CONFIG = { | |
"/api": { | |
"target": "http://my-backend.com", | |
"changeOrigin": true, | |
"secure": false, | |
"logLevel": "debug", | |
"pathRewrite": { | |
"^/api": "" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PROXY_CONFIG = { | |
"/api": { | |
"target": "http://my-backend.com", | |
"changeOrigin": true, | |
"secure": false, | |
"logLevel": "debug" | |
} | |
}; | |
module.exports = PROXY_CONFIG; |